3 ms·
Passing an int and, if the value doesn't exist, a None can be expressed quite neatly like this: "Optional[int]"
by aflag 4y ago
Passing an int and, if the value doesn't exist, a None can be expressed quite neatly like this: "Optional[int]"
- ZiiS 4y ago`int | None` is often prefered in the newest versions.