-
Notifications
You must be signed in to change notification settings - Fork 25
Closed
Labels
HacktoberfestDigitalOcean's HacktoberfestDigitalOcean's HacktoberfestdocumentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomers
Description
This library needs type annotation improvements! It mistakenly uses Type[tuple] where there are namedtuple returns. For example:
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)Metadata
Metadata
Assignees
Labels
HacktoberfestDigitalOcean's HacktoberfestDigitalOcean's HacktoberfestdocumentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomers