Fix mocked module import not working when used as guarded import
1.18.0
Support and require nptyping>=2
Handle UnionType
1.17.1
Mark it as requiring nptyping<2
1.17.0
Add typehints_use_rtype option
Handles TypeError when getting source code via inspect
1.16.0
Add support for type subscriptions with multiple elements, where one or more elements are tuples; e.g.,
nptyping.NDArray[(Any, ...), nptyping.Float]
Fix bug for arbitrary types accepting singleton subscriptions; e.g., nptyping.Float[64]
Resolve forward references
Expand and better handle TypeVar
Add intershpinx reference link for ... to Ellipsis (as is just an alias)
1.15.3
Prevents reaching inner blocks that contains if TYPE_CHECKING
1.15.2
Log a warning instead of crashing when a type guard import fails to resolve
When resolving type guard imports if the target module does not have source code (such is the case for C-extension
modules) do nothing instead of crashing
1.15.1
Fix fully_qualified should be typehints_fully_qualified
1.15.0
Resolve type guard imports before evaluating annotations for objects
Remove set_type_checking_flag flag as this is now done by default
Fix crash when the inspect module returns an invalid python syntax source
Made formatting function configurable using the option typehints_formatter
1.14.1
... (truncated)
Commits
73aa9b6 Fix mock imports on guarded imports (#225)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps sphinx-autodoc-typehints from 1.12.0 to 1.18.1.
Changelog
Sourced from sphinx-autodoc-typehints's changelog.
... (truncated)
Commits
73aa9b6
Fix mock imports on guarded imports (#225)4d5867d
Handle UnionType (#221)13ca2b4
[pre-commit.ci] pre-commit autoupdate (#226)def37f7
Support and require nptyping 2ede082a
Require nptyping<2 (#227)f9219b2
[pre-commit.ci] pre-commit autoupdate (#222)a9b9023
Fix typos (#224)1ef8488
Release 1.17.0aa345ca
Addtypehints_use_rtype
option (#218)a022d1a
inspect.getsource can raise TypeError (#210)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)