ProjectNeura / LEADS

Build your race-ready electric car in 10 minutes with powerful electronic stability control and a modern dashboard.
https://leads.projectneura.org
Apache License 2.0
246 stars 53 forks source link

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

Closed ATATC closed 2 days ago

ATATC commented 2 days ago

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.