Intended use of __replace__ #1954
Replies: 1 comment
-
This is not really a typing related question. As far as I know |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've just noticed the very convenient
__replace__
method on dataclasses. It's got all the right type hinting when using pyright (python 3.13). However,__replace__
is conspicuously missing from the dataclass documentation; is it supposed to be used directly, or to provide type hinting in future for some other function, e.g.,copy.replace
ordataclasses.replace
?Beta Was this translation helpful? Give feedback.
All reactions