Python Type Hinting with Literal | Towards Data Science

More powerful than it seems: use typing.Literal to create literal types

By · · 1 min read
Python Type Hinting with Literal | Towards Data Science

Source: Towards Data Science

More powerful than it seems: use typing.Literal to create literal types