Closed tekktrik closed 1 year ago
This library needs type annotation improvements! It mistakenly uses Type[tuple] where there are namedtuple returns. For example:
Type[tuple]
namedtuple
from collections import namedtuple NamedTupleClass = namedtuple("NamedTupleClass", ("A", "B", "C"))
Then if a function use a type annotation like Type[tuple]:
def some_method(arg_a: str, arg_b: int) -> Type[tuple]: return NamedTupleClass(1, 2, 3)
It should actually be:
def some_method(arg_a: str, arg_b: int) -> NamedTupleClass: return NamedTupleClass(1, 2, 3)
Hi @tekktrik , I would like to work on this issue.
Sure thing! Let me know if I can help with anything!
Hey @Jayaram18 anything I can help with?
This library needs type annotation improvements! It mistakenly uses
Type[tuple]
where there arenamedtuple
returns. For example:Then if a function use a type annotation like
Type[tuple]
:It should actually be: