DEV Community

Super Kai (Kazuya Ito)
Super Kai (Kazuya Ito)

Posted on • Edited on

G - Glossary (Python)

Buy Me a Coffee

generics

  • is a feature to create a generic class, function or type alias to reuse them as a generic type within a type hint.
    • generic type

    • is a type besed on a generic class, function or type alias to reuse them within a type hint.
    • is list, tuple, set, dict, Callable, etc.
    • basically makes [] required in strict mode in mypy.
    • basically makes [] optional in unstrict mode in mypy.

Top comments (0)