[New-bugs-announce] [issue45281] Make `is_attribute` and `module` arguments to `ForwardRef` kw-only
Nikita Sobolev
report at bugs.python.org
Fri Sep 24 08:11:27 EDT 2021
New submission from Nikita Sobolev <mail at sobolevn.me>:
After https://github.com/python/cpython/pull/28279 and https://bugs.python.org/issue45166 `ForwardRef` and `_type_check` now have `is_class` kw-only argument.
It is now inconsistent with `is_argument` and `module` arguments.
It would be quite nice to make them all kw-only.
Quoting @ambv:
> _type_check we can just change in Python 3.11 without any further ado. ForwardRef() will need a deprecation period when the users is calling is_argument= and module= as non-keyword arguments
----------
components: Library (Lib)
messages: 402561
nosy: sobolevn
priority: normal
severity: normal
status: open
title: Make `is_attribute` and `module` arguments to `ForwardRef` kw-only
type: behavior
versions: Python 3.11
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45281>
_______________________________________
More information about the New-bugs-announce
mailing list