This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Make `is_attribute` and `module` arguments to `ForwardRef` kw-only
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: sobolevn
Priority: normal Keywords:

Created on 2021-09-24 12:11 by sobolevn, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg402561 - (view) Author: Nikita Sobolev (sobolevn) * (Python triager) Date: 2021-09-24 12:11
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
History
Date User Action Args
2022-04-11 14:59:50adminsetgithub: 89444
2021-09-24 12:11:27sobolevncreate