36 Commits (master)

Author SHA1 Message Date
pre-commit-ci[bot] a2951abbec
chore(deps): update pre-commit hooks (#5605) 3 months ago
Henry Schreiner 8ef10a0ec9
ci: update to GraalPy 24.2 and mention in README (#5586) 3 months ago
Ralf W. Grosse-Kunstleve f365314ec0
Enable Conversions Between Native Python Enum Types and C++ Enums (#5555) 4 months ago
Xuehai Pan 7f94f24d64
feat(typing): allow annotate methods with `pos_only` when only have the `self` argument (#5403) 8 months ago
Michael Šimáček c4a05f9344
Add support for GraalPy (#5380) 9 months ago
Ralf W. Grosse-Kunstleve f1a2e03d19
feat: remove Python 3.6 support (#5177) 1 year ago
Henry Schreiner c758b81f3b
chore: move to ruff-format (#4912) 2 years ago
Sergei Izmailov e705fb5f27
Fix enum's `__str__` docstring (#4827) 2 years ago
Henry Schreiner 438034c5b8
chore: move to Ruff and add rules (#4483) 2 years ago
Ralf W. Grosse-Kunstleve 6493f496e3
Python 2 removal part 1: tests (C++ code is intentionally ~untouched) (#3688) 3 years ago
Aaron Gokaslan f4c81e0877
maint: Add additional linter-related pre-commit hooks (#3337) 4 years ago
Ralf W. Grosse-Kunstleve 49173e472f
Minor follow-on to PR #1334 (Fix enum value's __int__ returning non-int when underlying type is bool or of char type) (#3232) 4 years ago
Ye Zhihao cb60ed49e4
Fix enum value's __int__ returning non-int when underlying type is bool or of char type (#1334) 4 years ago
Aaron Gokaslan 9df2f1ff13
maint(precommit): Apply isort (#3195) 4 years ago
Eric Cousineau 2110d2d8ba
enum: add missing Enum.value property (#2739) 5 years ago
Ralf W. Grosse-Kunstleve cecdfadc58
minor cleanup: fixing or silencing flake8 errors (#2731) 5 years ago
Yannick Jadoul c58758d049
fix: add reasonable argument names to enum_ methods (#2637) 5 years ago
Henry Schreiner c50f90eca6
style: use Black everywhere (#2594) 5 years ago
David Vo 5e6ec49652
Add enum value to enum repr (#2126) 5 years ago
Henry Schreiner d8c7ee00a6
ci: GHA basic format & pre-commit (#2309) 5 years ago
Wenzel Jakob 31680e6f9c Implicit conversion from enum to int for Python 3.8 (fix by @sizmailov) 6 years ago
Wenzel Jakob 21d0eb460f Fix Python 3.8 test regression 6 years ago
Sergei Izmailov 09f0829401 Avoid conversion to `int_` rhs argument of enum eq/ne (#1912) 6 years ago
Lori A. Burns f6c4c1047a restores __invert__ to arithmetic-enabled enum, fixes #1907 (#1909) 6 years ago
Tarcísio Fischer 54eb8193e5 Fix scoped enums comparison for equal/not equal cases (#1339) (#1571) 7 years ago
Wenzel Jakob f4245181ae enum_: move most functionality to a non-template implementation 7 years ago
Krzysztof Fornalczyk 5c8746ff13 check for already existing enum value added; added test (#1453) 7 years ago
Boris Staletic 289e5d9cc2 Implement an enum_ property "name" 7 years ago
Wenzel Jakob 6d19036cb2
support docstrings in enum::value() (#1160) 8 years ago
Jason Rhinelander 391c75447d Update all remaining tests to new test styles 8 years ago
Wenzel Jakob 7653a115bd pytest target: add USE_TERMINAL flag 8 years ago
Wenzel Jakob e6fd2cd5ab enum_: fix implicit conversion on Python 2.7 8 years ago
Matthieu Bec af936e1987 Expose enum_ entries as "__members__" read-only property. Getters get a copy. 8 years ago
Dean Moldovan bad1740213 Add checks to maintain a consistent Python code style and prevent bugs (#515) 9 years ago
Pim Schellart 90d27805b9 Extended enum support (#503) 9 years ago
Dean Moldovan a9a37b4e31 Move enum tests into a new file 9 years ago