summaryrefslogtreecommitdiff
path: root/sphinx/ext/autodoc/importer.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix #8041: autodoc: An ivar on super class is not shown unexpectedlyTakeshi KOMIYA2020-08-081-4/+26
| | | | | | | | | | | | | | | | | | An annotated instance variable on super class is not documented when derived class has also other annotated instance variables because `obj.__annotations__` is overrided by derived class's type hints. To get annotations of the target class correctly, this scans MRO to get all of annotated instance variables.
* | Merge branch '3.x'Takeshi KOMIYA2020-07-241-4/+37
|\ \ | |/
| * Fix #1362: autodoc: Support private class attributesTakeshi KOMIYA2020-07-181-4/+37
| | | | | | | | | | | | So far, autodoc treats a "private" class attribute as a mere attribute. But its name is mangled by python interpreter. This make it unmangled name to be documented expectedly.
| * Preserve backwards compatibilityPeter Bell2020-07-161-6/+13
| |
| * Require canonical name to be specified when calling deprecated_aliasPeter Bell2020-07-151-5/+5
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-07-051-2/+2
|\ \ | |/
| * Fix exception causes all over the codebaseRam Rachum2020-06-141-2/+2
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-05-041-2/+4
|\ \ | |/
| * refactor: autodoc: Update type annotationsTakeshi KOMIYA2020-05-021-4/+6
| |
| * Fix #6857: autodoc: failed to detect a classmethod on Enum classTakeshi KOMIYA2020-04-301-1/+2
| |
* | Remove deprecated features marked as RemovedInSphinx40WarningTakeshi KOMIYA2020-04-291-16/+0
| |
* | Use typing.NamedTuple instead of collections.namedtuple as possibleTakeshi KOMIYA2020-03-071-3/+5
|/
* Merge branch '2.0'Takeshi KOMIYA2020-02-111-2/+2
|\
| * Fix #7126: autodoc: TypeError: getset_descriptor object is not iterableTakeshi KOMIYA2020-02-111-2/+2
| |
* | Merge branch '2.0'Takeshi KOMIYA2020-01-301-3/+30
|\ \ | |/
| * Close #7051: autodoc: Support instance variables without defaults (PEP-526)Takeshi KOMIYA2020-01-251-3/+30
| |
* | Merge branch '2.0'Takeshi KOMIYA2020-01-011-1/+1
|\ \ | |/
| * A happy new year!Takeshi KOMIYA2020-01-011-1/+1
| |
* | Merge branch '2.0'Takeshi KOMIYA2019-08-191-4/+3
|\ \ | |/
| * Switch uses of __import__ to importlib.get_module()Jon Dufresne2019-08-171-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Python docs for __import__ recommend using importlib.get_module(). https://docs.python.org/3/library/functions.html#__import__ > Note: This is an advanced function that is not needed in everyday > Python programming, unlike importlib.import_module(). As importlib.get_module() uses the Python module cache and returns the module, this also allows simplifying many module cache checks of use of sys.modules. importlib.get_module() has been available since Python 3.3.
* | Merge branch '2.0'Takeshi KOMIYA2019-07-011-10/+7
|\ \ | |/
| * Migrate to py3 style type annotation: sphinx.ext.autodoc.importerTakeshi KOMIYA2019-07-011-10/+7
| |
| * Don't crash when autodocumenting classes with __slots__ = NoneAudrey Dutcher2019-06-051-1/+1
| |
* | Don't crash when autodocumenting classes with __slots__ = NoneAudrey Dutcher2019-06-041-1/+1
| |
* | Merge branch '2.0'Takeshi KOMIYA2019-05-291-1/+8
|\ \ | |/
| * Close #6325: autodoc: Support attributes in __slots__Takeshi KOMIYA2019-05-221-1/+8
| |
* | Drop features and APIs deprecated in 1.8Takeshi KOMIYA2019-03-301-2/+1
|/
* refactor: Move implementation of mock to sphinx.ext.autodoc.mockTakeshi KOMIYA2019-02-271-198/+18
|
* Merge branch 'master' into 5394_meaningful_annotations_for_mockTakeshi KOMIYA2019-02-111-28/+90
|\
| * Merge branch '1.8'Takeshi KOMIYA2019-02-031-1/+1
| |\
| | * Fix #5995: autodoc: autodoc_mock_imports conflict with metaclassTakeshi KOMIYA2019-02-021-1/+1
| | |
| * | Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
| |\ \ | | |/
| | * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| | |
| * | Remove unnecessary encoding cookie from Python source filesJon Dufresne2018-12-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Python 3, the default encoding of source files is utf-8. The encoding cookie is now unnecessary and redundant so remove it. For more details, see the docs: https://docs.python.org/3/howto/unicode.html#the-string-type > The default encoding for Python source code is UTF-8, so you can > simply include a Unicode character in a string literal ... Includes a fix for the flake8 header checks to stop expecting an encoding cookie.
| * | Merge pull request #5796 from jdufresne/superTakeshi KOMIYA2018-12-161-3/+3
| |\ \ | | | | | | | | Use Python 3 super() argument-less syntax
| | * | Use Python 3 super() argument-less syntaxJon Dufresne2018-12-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | The form is less verbose and more idiomatic for Python 3 only code. https://docs.python.org/3/library/functions.html#super
| * | | Use os.devnull; replace hard coded valueJon Dufresne2018-12-151-1/+2
| |/ / | | | | | | | | | https://docs.python.org/3/library/os.html#os.devnull
| * | Replace all "unicode" type by "str"Takeshi KOMIYA2018-12-151-3/+2
| | |
| * | Define _MockImporter as a MetaPathFinderJon Dufresne2018-12-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The instance is added to sys.meta_path. Per the documentation, this should be a MetaPathFinder: https://docs.python.org/3/library/sys.html#sys.meta_path Correct the _MockImporter.find_module() type signature per typeshed. https://github.com/python/typeshed/blob/0b49ce75b478fdf283dda5dd1368759ac342dfe2/stdlib/3/importlib/abc.pyi#L56-L57
| * | refactor ``mock()`` to based on PEP-451 implementationTakeshi KOMIYA2018-12-041-8/+69
| | |
| * | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
| | |
| * | Replace all six.itervalues()/.iteritems() with .values()/.items()Jon Dufresne2018-09-231-3/+1
| | |
| * | Merge branch 'master' into HEADTakeshi KOMIYA2018-09-221-9/+6
| |\ \
| | * | refactoring: Drop PY2 and PY3 flagsTakeshi KOMIYA2018-09-221-3/+1
| | | |
| | * | Drop branches for sys.version_info < (3, 4)Takeshi KOMIYA2018-09-221-6/+0
| | |/
| | * Fix #5436: Autodoc does not work with enum subclasses with properties/methodsTakeshi KOMIYA2018-09-181-1/+6
| | |
| * | Remove unnecessary object from class definitionsJon Dufresne2018-09-111-2/+2
| |/ | | | | | | | | In Python 3, all classes are new-style classes. The object in the definition is redundant and unnecessary.
| * Fix autodoc: ImportError is replaced by AttributeError for deeper moduleTakeshi KOMIYA2018-09-031-1/+7
| |
* | removed redundant "type: ignore"Max2018-09-071-1/+3
| |
* | fix returned typeMax2018-09-071-2/+2
| |