Skip to content

Use Callable[...] Instead of type[...] for Type Hints #242

@ATATC

Description

@ATATC

In most cases, type[...] is used for type hints of constructors. However, the constructors of subclasses of that class do not necessarily have the same signature. Therefore, it is more clear to use Callable[...] that declares the signature more clearly.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or requesttodoNew task or assignment

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions