Thomas MK added the comment:
There is of course no hard reason for not using the global scope. I just often
have enums (or other types) that are very closely linked to one class. And it
makes sense to me then to have a TypeAlias in that class so that I don't have
to import the
New submission from Thomas MK :
The dataclass transformation ignores attributes that are annotated as ClassVar.
I think it should also ignore attributes that are annotated as TypeAlias.
Specifically, I have this usecase in mind:
class RunMode(Enum):
release = auto()
debug = auto
Changes by mk :
--
nosy: +migel.k
___
Python tracker
<http://bugs.python.org/issue15716>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth