-
-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check 3.11 support #247
Merged
Merged
Check 3.11 support #247
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
asottile
approved these changes
Jul 27, 2022
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
As changed via python/peps#689 and adopted by 3.11. Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
netbsd-srcmastr
pushed a commit
to NetBSD/pkgsrc
that referenced
this pull request
May 6, 2023
- Allow Sphinx explicitly to write in parallel. - Fixed crash when documenting ParamSpecArgs ## 1.21.7 - Fixed a bug where if a class has an attribute and a constructor argument with the same name, the constructor argument type would be rendered incorrectly (issue 308) - Fixed napoleon handling of numpy docstrings with no specified return type. ## 1.21.6 - Fix a `Field list ends without a blank line` warning (issue 305). ## 1.21.5 - More robust determination of rtype location / fix issue 302 ## 1.21.4 - Improvements to the location of the return type ## 1.21.3 - Use format_annotation to render class attribute type annotations ## 1.21.2 - Fix overloads support ## 1.21.1 - Fix spacing between `:rtype:` and directives ## 1.21 - Handle types from types module - If module is \_io, use io instead - Put rtype before examples or usage section - Remove redundant return type for attributes - Handle collections.abc.Callable as well as typing.Callable - Put Literal args in code blocks ## 1.20.2 - Fix Optional role to be data. ## 1.20.1 - Fixed default options not displaying for parameters without type hints. ## 1.20 - Use hatchling instead of setuptools - Add support for typing.ParamSpec - Allow star prefixes for parameter names in docstring ## 1.19.2 - Fix incorrect domain used for collections.abc.Callable. ## 1.19.1 - Fix bug for recursive type alias. ## 1.19.0 - Support for CPython 3.11, no longer adds `Optional` when the argument is default per [recommendation from PEP-484](tox-dev/sphinx-autodoc-typehints#247). ## 1.18.3 - Support and require `nptyping>=2.1.2` ## 1.18.2 - Support and require `nptyping>=2.1.1` ## 1.18.1 - 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 - Fixed `normalize_source_lines()` messing with the indentation of methods with decorators that have parameters starting with `def`. - Handle `ValueError` or `TypeError` being raised when signature of an object cannot be determined - Fix `KeyError` being thrown when argument is not documented (e.g. `cls` argument for class methods, and `self` for methods) ## 1.14.0 - Added `typehints_defaults` config option allowing to automatically annotate parameter defaults. ## 1.13.1 - Fixed `NewType` inserts a reference as first argument instead of a string ## 1.13.0 - Dropped Python 3.6 support - Python 3.10 support - Normalize async functions properly - Allow py310 style annotations (PEP-563)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
python/typing#275