`frozen_default` has been added to both typing and typing_extensions, pending future releases of each.

 

https://github.com/python/cpython/pull/99958

https://github.com/python/typing_extensions/pull/101

 

-Erik

 

From: S Pradeep Kumar <gohanpra@gmail.com>
Sent: Friday, December 2, 2022 10:30 AM
To: Eric Traut <eric@traut.com>
Cc: typing-sig@python.org
Subject: [Typing-sig] Re: Could we add frozen_default to "PEP 681 – Data Class Transforms"?

 

+1 from Pyre. This sounds like a reasonable change.

 

On Wed, Nov 30, 2022 at 9:19 PM Eric Traut <eric@traut.com> wrote:

I think this is a reasonable extension. It can be added in a way that's backward compatible with the Python 3.11 typing module and the typing_extensions library because `dataclass_transform` has a `**kwargs` parameter. This would simply require an update to the documentation and an agreement among the type checker maintainers.

I don't think mypy or pytype have implemented support for `dataclass_transform` yet, so it would just be pyre and pyright that would be affected.

I'm willing to add it to pyright if there are no objections and the pyre maintainers are open to making the change.

 -Eric

--
Eric Traut
Contributor to Pyright & Pylance
Microsoft
_______________________________________________
Typing-sig mailing list -- typing-sig@python.org
To unsubscribe send an email to typing-sig-leave@python.org
https://mail.python.org/mailman3/lists/typing-sig.python.org/
Member address: gohanpra@gmail.com


 

--

S Pradeep Kumar