Need type hint for getattr
#2006
Labels
topic: feature
Discussions about new features for Python's type annotations
8000
getattr
#2006
I want type inference for Callbacks.
To achieve this, abilities blow should be support:
CallBatch
/__getattr__
/item
can be marked as type of attributes types ofT
(may be a LiteralString)getattr
should have two generic types, one is type of object, the other is type of input name, and change return type when inputname
changesThe text was updated successfully, but these errors were encountered: