summaryrefslogtreecommitdiff
path: root/tests/roots/test-ext-autodoc/target/enum.py
Commit message (Collapse)AuthorAgeFilesLines
* refactor: test: Rename target.enum to target.enumsTakeshi KOMIYA2020-08-031-23/+0
| | | | | Using "enum" for module name bothers me on debugging errors because it sometimes raises ImportError.
* Fix #6857: autodoc: failed to detect a classmethod on Enum classTakeshi KOMIYA2020-04-301-0/+5
|
* py3: Remove (most) __future__ importsStephen Finucane2018-12-171-1/+0
| | | | | | | | | | | | | | | | | | | There were two used: - print_function - absolute_import Both of these are mandatory in Python 3.0 onwards [1] and can therefore be removed...mostly. Unfortunately, mypy is still running in Python 2.7 mode, meaning we need the 'print_function' future wherever we're calling 'print' with the 'file' argument. There's also a single 'absolute_import' future that must be retained as its removal breaks a test for as-yet unknown reasons. TODOs are added to resolve both issues in the future. [1] https://docs.python.org/3/library/__future__.html Signed-off-by: Stephen Finucane <stephen@that.guru>
* Fix #5436: Autodoc does not work with enum subclasses with properties/methodsTakeshi KOMIYA2018-09-181-0/+4
|
* test: Move EnumCls to target.enum packageTakeshi KOMIYA2018-09-181-0/+15