Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Add support for PEP 585 generics | James | 2021-07-17 | 1 | -0/+2 | |
|/ | ||||||
* | Fix #9404: autodoc: autoclass raises TypeError for dict-like object | Takeshi KOMIYA | 2021-07-11 | 1 | -1/+1 | |
| | | | | | The autoclass directive raises TypeError when dict-like object (not a class) is given as a subject. | |||||
* | Merge pull request #9415 from ↵ | Takeshi KOMIYA | 2021-07-09 | 1 | -20/+23 | |
|\ | | | | | | | | | tk0miya/9362_AttributeError_for_subclass_of_empty_tuple Fix #9362: autodoc: AttributeError is raised for a subclass of Tuple[()] | |||||
| * | Fix #9362: autodoc: AttributeError is raised for a subclass of Tuple[()] | Takeshi KOMIYA | 2021-07-07 | 1 | -20/+23 | |
| | | ||||||
* | | Fix typo | Eisuke Kawashima | 2021-07-08 | 3 | -3/+3 | |
|/ | ||||||
* | Merge branch '4.0.x' into 4.x | Takeshi KOMIYA | 2021-06-30 | 1 | -0/+17 | |
|\ | ||||||
| * | Revert the removal of sphinx.util:force_decode() | Takeshi KOMIYA | 2021-06-13 | 1 | -0/+17 | |
| | | | | | | | | | | | | | | | | | | | | After the release of 4.0.0, some 3rd party extensions have became not working with the latest Sphinx because `force_decode()` function was removed. It was deprecated since Sphinx-2.0 and warned for the removal since 3.0. This reverts the removal and extends its deprecation period to 5.0.0. I hope it helps users of these extensions. | |||||
* | | C++, C, support digit separators in literals | Jakob Lykke Andersen | 2021-06-24 | 1 | -10/+11 | |
| | | ||||||
* | | Merge branch '4.0.x' into 4.x | Takeshi KOMIYA | 2021-06-13 | 2 | -9/+9 | |
|\ \ | |/ | ||||||
| * | Fix mypy violations (delete type: ignore ) (with mypy-0.900) | Junya Fukuda | 2021-06-13 | 2 | -9/+9 | |
| | | ||||||
| * | Fix type annotations (for jinja2) | Takeshi KOMIYA | 2021-05-19 | 3 | -10/+10 | |
| | | | | | | | | | | | | Jinja2 starts to bundle its typehints since v3.0. As a result, mypy warns "ignore" hint is needless. This removes them all to keep it valid. | |||||
| * | Support jinja2-3.0 | Takeshi KOMIYA | 2021-05-19 | 1 | -2/+8 | |
| | | | | | | | | | | | | Since jinja2-3.0, some utility functions like contextfunction and environmentfilter are renamed to new name. This follows the updates to support jinja2-3.0 or above. | |||||
* | | DocFields, small fixes | Jakob Lykke Andersen | 2021-06-03 | 1 | -8/+5 | |
| | | ||||||
* | | fields, call roles instead of making a pending_xref | Jakob Lykke Andersen | 2021-06-03 | 1 | -24/+55 | |
| | | | | | | | | Except for py which has mixins that assumes a single pending_xref | |||||
* | | deprecate sphinx.ext.autosummary._app | Takeshi KOMIYA | 2021-05-31 | 1 | -2/+5 | |
| | | ||||||
* | | Close #9272: autodoc: Render enum values for the default argument value better | Takeshi KOMIYA | 2021-05-30 | 1 | -2/+5 | |
| | | ||||||
* | | Fix #9250: autodoc: The inherited method not having docstring is wrongly parsed | Takeshi KOMIYA | 2021-05-23 | 1 | -8/+17 | |
| | | | | | | | | | | | | `sphinx.util.inspect.getdoc()` clean the docstring up if the method is inherited and not having docstring. That causes indentations are removed on processing it. | |||||
* | | Fix #9224: info-field-list does not support a type containing space | Takeshi KOMIYA | 2021-05-15 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | So far, DocFieldTransformer has split the field name for `:type:` and `:param:` at the first whitespace. Therefore, it does not allow to use a type containing whitespace (ex. `Dict[str, str]`). This changes the splitting logic to divide the field name at the last whitespace (a.k.a `rstrip()`). It allows to use whitespaces on types. | |||||
* | | Fix type annotations (for jinja2) | Takeshi KOMIYA | 2021-05-13 | 3 | -10/+10 | |
| | | | | | | | | | | | | Jinja2 starts to bundle its typehints since v3.0. As a result, mypy warns "ignore" hint is needless. This removes them all to keep it valid. | |||||
* | | Fix #9195: autodoc: The args of `typing.Literal` are wrongly rendered | Takeshi KOMIYA | 2021-05-11 | 1 | -0/+6 | |
| | | | | | | | | They should be rendered as "repr" form. | |||||
* | | refactor: Add Optional to type annotations | Takeshi KOMIYA | 2021-05-10 | 1 | -3/+3 | |
| | | ||||||
* | | [IMP] util: detect incorrect locale_dirs path | Martin Trigaux | 2021-05-08 | 1 | -1/+4 | |
| | | | | | | | | | | In case the config is incorrect (e.g. wrong relative path), it is silently ignored. This makes it easier for debugging. | |||||
* | | Merge pull request #9162 from tk0miya/jinja2-3.0 | Takeshi KOMIYA | 2021-05-06 | 1 | -2/+8 | |
|\ \ | | | | | | | Support jinja2-3.0 | |||||
| * | | Support jinja2-3.0 | Takeshi KOMIYA | 2021-05-04 | 1 | -2/+8 | |
| | | | | | | | | | | | | | | | | | | Since jinja2-3.0, some utility functions like contextfunction and environmentfilter are renamed to new name. This follows the updates to support jinja2-3.0 or above. | |||||
* | | | refactor: Add Optional to type annotations | Takeshi KOMIYA | 2021-05-03 | 6 | -19/+22 | |
|/ / | ||||||
* | | Merge pull request #9159 from tk0miya/8588_nested_autodoc_type_aliases | Takeshi KOMIYA | 2021-05-03 | 1 | -3/+84 | |
|\ \ | | | | | | | Fix #8588: autodoc_type_aliases does not support dotted name | |||||
| * | | Close #8588: autodoc: autodoc_type_aliases supports dotted name | Takeshi KOMIYA | 2021-05-03 | 1 | -3/+84 | |
| | | | | | | | | | | | | | | | It allows users to define an alias for a class with module name like `foo.bar.BazClass`. | |||||
* | | | Fix #8597: autodoc: metadata only docstring is treated as undocumented | Takeshi KOMIYA | 2021-05-02 | 1 | -5/+18 | |
|/ / | | | | | | | | | The metadata in docstring is invisible content. Therefore docstring having only metadata should be treated as undocumented. | |||||
* | | Add unicode multiplication | Oz N Tiram | 2021-04-27 | 1 | -0/+2 | |
| | | | | | | | | | | Since checkmark already exists, it makes sense to have this too. Both signs are used as "yes" or "no" replacements in text UIs. | |||||
* | | Merge branch '4.0.x' into 4.x | Takeshi KOMIYA | 2021-04-19 | 1 | -19/+36 | |
|\ \ | |/ | ||||||
| * | Fix #8818: autodoc: Super class having ``Any`` arguments causes nit-picky ↵ | Takeshi KOMIYA | 2021-04-18 | 1 | -19/+36 | |
| | | | | | | | | | | | | | | | | warning On generating the base class information, unexpected nit-picky warning for ``typing.Any`` was emitted. This fixes it by using `~` prefix on generating a cross-reference to make it valid. | |||||
* | | Merge pull request #9097 from peterbell10/parallel-task-sleep | Takeshi KOMIYA | 2021-04-17 | 1 | -4/+8 | |
|\ \ | |/ |/| | Remove unnecesary sleep when submitting parallel tasks | |||||
| * | Remove redundant assignment | Peter Bell | 2021-04-17 | 1 | -1/+1 | |
| | | ||||||
| * | Remove unnecesary sleep when submitting parallel tasks | Peter Bell | 2021-04-13 | 1 | -5/+9 | |
| | | ||||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2021-04-11 | 1 | -2/+12 | |
|\ \ | |/ | ||||||
| * | Fix autodoc: Async staticmethods/ classmethods are considered as not async | Takeshi KOMIYA | 2021-04-11 | 1 | -2/+12 | |
| | | | | | | | | | | | | | | | | | | | | Since 3.10.0a7, the instances of staticmethod and classmethod have `__wrapped__` attribute. It confuses sphinx.util.inspect:iscoroutinefunction(). refs: * https://docs.python.org/3.10/whatsnew/3.10.html#other-language-changes * https://bugs.python.org/issue43682 | |||||
* | | refactor: Add Optional to type annotations | Takeshi KOMIYA | 2021-04-08 | 1 | -1/+1 | |
| | | ||||||
* | | Merge branch 'master' into refactor_type_annotation2 | Takeshi KOMIYA | 2021-04-08 | 1 | -6/+6 | |
|\ \ | ||||||
| * | | refactor: Lazy loading is not needed for type annotations | Takeshi KOMIYA | 2021-04-04 | 1 | -6/+6 | |
| | | | ||||||
* | | | refactor: use raw Type for type annotations | Takeshi KOMIYA | 2021-04-04 | 7 | -17/+17 | |
|/ / | ||||||
* | | Merge branch 'master' into typos | Takeshi KOMIYA | 2021-03-27 | 25 | -900/+236 | |
|\ \ | ||||||
| * | | Fix #8992: autodoc: Failed to resolve types.TracebackType type annotation | Takeshi KOMIYA | 2021-03-17 | 1 | -6/+12 | |
| | | | | | | | | | | | | | | | The builtin module, ``types.TracebackType`` does not have correct module name. This allows to refer it automatically. | |||||
| * | | refactor: Add a type alias for the option_spec of directives; OptionSpec | Takeshi KOMIYA | 2021-03-13 | 1 | -3/+12 | |
| | | | ||||||
| * | | refactor: Use PEP-526 based variable annotation (sphinx.util) | Takeshi KOMIYA | 2021-03-10 | 15 | -53/+54 | |
| | | | ||||||
| * | | Merge branch '3.x' | Takeshi KOMIYA | 2021-03-06 | 1 | -2/+15 | |
| |\ \ | | |/ | ||||||
| * | | Fix #7199: py domain: Add a new confval: python_use_unqualified_type_names | Takeshi KOMIYA | 2021-03-06 | 1 | -3/+3 | |
| | | | | | | | | | | | | | | | | | | Add a new config variable: python_use_unqualified_type_names. If enabled, it goes to suppress the module name of the python reference if it can be resolved. | |||||
| * | | Filter pending_xref_condition node on failed resolution | Takeshi KOMIYA | 2021-03-06 | 1 | -0/+10 | |
| | | | ||||||
| * | | autodoc: an imported TypeVar is not resolved (refs: #8415) | Takeshi KOMIYA | 2021-02-28 | 1 | -1/+4 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So far, a TypeVar is rendered without module name. As a result, it could not be resolved if it is imported from other modules. This prepends its module name and make it resolvable. This is available only in Python 3.7 or above. As a side effect, all of TypeVars are displayed with module name. It should be fixed in latter step (refs: #7119) | |||||
| * | | Fix #8917: autodoc: Raises a warning if function has wrong __globals__ value | Takeshi KOMIYA | 2021-02-26 | 1 | -3/+12 | |
| | | | | | | | | | | | | | | | | | | `sphinx.util.inspect:signature()` crashes with AttributeError when subject has wrong `__globals__` value. This ignores the error on building. | |||||
| * | | refactor: Remove meaningless type annotations | Takeshi KOMIYA | 2021-02-17 | 1 | -2/+2 | |
| | | |