Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | | Merge branch '1.8' | Takeshi KOMIYA | 2018-09-16 | 1 | -1/+1 | |
| |\ \ | | |/ | ||||||
| | * | Fix typo | Takeshi KOMIYA | 2018-09-14 | 1 | -1/+1 | |
| | | | ||||||
* | | | Remove unnecessary object from class definitions | Jon Dufresne | 2018-09-11 | 1 | -2/+2 | |
|/ / | | | | | | | | | In Python 3, all classes are new-style classes. The object in the definition is redundant and unnecessary. | |||||
* | | Ensure frozenset object descriptions are reproducible | Chris Lamb | 2018-09-05 | 1 | -0/+9 | |
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | Whilst working on the Reproducible Builds effort [0], we noticed that sphinx could generate output that is not reproducible. In particular, the rendering of `frozenset` objects in default arguments and elsewhere is currently non-determinstic. For example: frozenset(['a', 'b', 'c']) Might be rendered as any of: frozenset({'a', 'b', 'c'}) frozenset({'a', 'c', 'b'}) frozenset({'b', 'a', 'c'}) frozenset({'b', 'c', 'a'}) frozenset({'c', 'a', 'b'}) frozenset({'c', 'b', 'a'}) Patch attached that sorts the contents of frozensets whilst rendering. This is parallel to the `dict` and `set` type logic [0] https://reproducible-builds.org/ | |||||
* | autodoc: Fix typing.get_type_hints() raises AttributeError for partial objects | Takeshi KOMIYA | 2018-08-25 | 1 | -2/+7 | |
| | ||||||
* | Merge branch '1.7' into 1.8 | Takeshi KOMIYA | 2018-08-25 | 1 | -1/+3 | |
|\ | ||||||
| * | Fix #5322: autodoc: ``Any`` typehint causes formatting error | Takeshi KOMIYA | 2018-08-22 | 1 | -1/+3 | |
| | | ||||||
* | | Merge branch '1.7' | Takeshi KOMIYA | 2018-08-19 | 1 | -4/+39 | |
|\ \ | |/ | ||||||
| * | Fix #5211: autodoc: No docs generated for functools.partial functions | Takeshi KOMIYA | 2018-08-17 | 1 | -4/+39 | |
| | | ||||||
* | | Fix #5306: autodoc: emit a warning for invalid typehints | Takeshi KOMIYA | 2018-08-17 | 1 | -1/+5 | |
| | | ||||||
* | | Merge branch '1.7' | Takeshi KOMIYA | 2018-08-17 | 1 | -45/+58 | |
|\ \ | |/ | ||||||
| * | Fix #5291: autodoc crashed by ForwardRef types | Takeshi KOMIYA | 2018-08-15 | 1 | -0/+4 | |
| | | ||||||
| * | Fix mypy annotations | Takeshi KOMIYA | 2018-08-15 | 1 | -3/+3 | |
| | | ||||||
| * | refactor: format_annotation() | Takeshi KOMIYA | 2018-08-15 | 1 | -23/+10 | |
| | | ||||||
| * | Fix autodoc: Optional types are wrongly rendered | Takeshi KOMIYA | 2018-08-15 | 1 | -32/+49 | |
| | | ||||||
| * | handle NoneType as None | Terence D. Honles | 2018-08-10 | 1 | -0/+6 | |
| | | ||||||
| * | change format_args to prefer annotations from typing.get_type_hints | Terence Honles | 2018-08-10 | 1 | -2/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | The current code looks for the pattern:: class Node: def parent(self) -> 'Node': pass This change allows more complex forward references:: class Node: def children(self) -> Set['Node']: pass | |||||
* | | Merge branch '1.7' | Takeshi KOMIYA | 2018-07-17 | 1 | -0/+7 | |
|\ \ | |/ | ||||||
| * | Merge pull request #5167 from mitya57/long-tuples | Takeshi KOMIYA | 2018-07-16 | 1 | -0/+7 | |
| |\ | | | | | | | Fix formatting type annotations for tuples with more than two arguments | |||||
| | * | inspect: Handle Tuple type as a special case | Dmitry Shachnev | 2018-07-13 | 1 | -0/+7 | |
| | | | ||||||
| * | | Fix #5143: autodoc: crashed on inspecting dict like object | Takeshi KOMIYA | 2018-07-15 | 1 | -1/+1 | |
| |/ | ||||||
* | | Merge pull request #5170 from tk0miya/5143_autodoc_crashed_on_inspecting | Takeshi KOMIYA | 2018-07-15 | 1 | -1/+1 | |
|\ \ | | | | | | | Fix #5143: autodoc: crashed on inspecting dict like object | |||||
| * | | Fix #5143: autodoc: crashed on inspecting dict like object | Takeshi KOMIYA | 2018-07-15 | 1 | -1/+1 | |
| |/ | ||||||
* | | Merge branch '1.7' | Takeshi KOMIYA | 2018-06-16 | 1 | -2/+2 | |
|\ \ | |/ | ||||||
| * | Fix #5032: autodoc loses the first staticmethod parameter for old styled classes | Takeshi KOMIYA | 2018-06-13 | 1 | -2/+2 | |
| | | ||||||
* | | Merge branch '1.7' | Takeshi KOMIYA | 2018-05-19 | 1 | -3/+7 | |
|\ \ | |/ | ||||||
| * | Fix #4969: autodoc: constructor method should not have return annotation | Takeshi KOMIYA | 2018-05-19 | 1 | -3/+7 | |
| | | ||||||
* | | Merge pull request #4834 from ↵ | Takeshi KOMIYA | 2018-04-14 | 1 | -1/+12 | |
|\ \ | | | | | | | | | | | | | lamby/895553-sphinx-please-make-the-set-object-description-reproducible Ensure set object descriptions are reproducible. | |||||
| * | | Ensure the set object description is reproducible. | Chris Lamb | 2018-04-14 | 1 | -0/+9 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Whilst working on the Reproducible Builds effort [0], we noticed that sphinx could generate output that is not reproducible. In particular, the rendering of `set` objects in default arguments and elsewhere is currently non-determinstic. For example: class A_Class(object): a_set = {'a', 'b', 'c'} Might be rendered as any of: {'a', 'b', 'c'} {'a', 'c', 'b'} {'b', 'a', 'c'} {'b', 'c', 'a'} {'c', 'a', 'b'} {'c', 'b', 'a'} Patch attached that sorts the contents of sets whilst rendering. This is parallel to the `dict` key sorting. This was originally filed in Debian as #895553 [1]. [0] https://reproducible-builds.org/ [1] https://bugs.debian.org/895553 Signed-off-by: Chris Lamb <lamby@debian.org> | |||||
| * | | Call object_description recursively for dict keys and values. | Chris Lamb | 2018-04-14 | 1 | -1/+3 | |
| | | | ||||||
* | | | Merge branch '1.7' | Takeshi KOMIYA | 2018-04-14 | 1 | -1/+4 | |
|\ \ \ | |/ / |/| / | |/ | ||||||
| * | Fix #4543: testcase for partialmethod is failed with py3.6.5 | Takeshi KOMIYA | 2018-04-08 | 1 | -1/+4 | |
| | | ||||||
* | | Merge branch '1.7' | Takeshi KOMIYA | 2018-03-18 | 1 | -2/+2 | |
|\ \ | |/ | ||||||
| * | Revert "Use typing.TYPE_CHECKING for typehints" | Takeshi KOMIYA | 2018-03-13 | 1 | -2/+2 | |
| | | | | | | | | This reverts commit a073e17537c2aacaac305feadea58d4473ec97f4. | |||||
* | | Merge branch '1.7' | Takeshi KOMIYA | 2018-03-03 | 1 | -3/+3 | |
|\ \ | |/ | ||||||
| * | Fix mypy violations | Takeshi KOMIYA | 2018-03-03 | 1 | -3/+3 | |
| | | ||||||
* | | Merge branch '1.7' | Takeshi KOMIYA | 2018-02-18 | 1 | -3/+4 | |
|\ \ | |/ | ||||||
| * | Merge pull request #4616 from tk0miya/use_typing.TYPE_CHECKING | Takeshi KOMIYA | 2018-02-17 | 1 | -2/+2 | |
| |\ | | | | | | | Use typing.type checking | |||||
| | * | Use typing.TYPE_CHECKING for typehints | Takeshi KOMIYA | 2018-02-14 | 1 | -2/+2 | |
| | | | ||||||
| * | | Fix #4260: autodoc: keyword only argument separator is not disappeared | Takeshi KOMIYA | 2018-02-13 | 1 | -1/+2 | |
| |/ | ||||||
| * | Fix #4539: autodoc emits warnings for partialmethods | Takeshi KOMIYA | 2018-02-04 | 1 | -3/+14 | |
| | | ||||||
* | | Update type annotations | Takeshi KOMIYA | 2018-02-04 | 1 | -0/+3 | |
| | | ||||||
* | | Fix #4539: autodoc emits warnings for partialmethods | Takeshi KOMIYA | 2018-02-03 | 1 | -3/+14 | |
|/ | ||||||
* | Merge branch '1.7-release' into use_flake8-import-order | Takeshi KOMIYA | 2018-01-28 | 1 | -0/+49 | |
|\ | ||||||
| * | Fix #4490: autodoc: type annotation is broken with python 3.7.0a4+ | Takeshi KOMIYA | 2018-01-27 | 1 | -0/+49 | |
| | | ||||||
* | | Use flake8-import-order | Takeshi KOMIYA | 2018-01-28 | 1 | -1/+1 | |
|/ | ||||||
* | Fix Signature does not work correctly with py37a4+ | Takeshi KOMIYA | 2018-01-25 | 1 | -3/+6 | |
| | ||||||
* | Fix #4415: autodoc classifies inherited staticmethods as regular methods | Takeshi KOMIYA | 2018-01-20 | 1 | -0/+20 | |
| | ||||||
* | Fix #4415: autodoc classifies inherited classmethods as regular methods | Takeshi KOMIYA | 2018-01-20 | 1 | -0/+14 | |
| | ||||||
* | Fix #3570: autodoc: Do not display typing. module for type hints | Takeshi KOMIYA | 2018-01-13 | 1 | -3/+11 | |
| |