-
Notifications
You must be signed in to change notification settings - Fork 276
Closed
Labels
Description
Describe the Bug
from typing import NewType
Thing = NewType("Thing", int)
ThingType = type[Thing]
def func(x: ThingType ) -> None:
print(x.__name__)
func(Thing)Python: 3.12
Likely related to #1709, but __name__ is (I think) almost always available so could potentially be special cased to always work?
Sandbox Link
(Only applicable for extension issues) IDE Information
No response
Reactions are currently unavailable