blob: bd730bbd61a641d43a35d1be0db9da9c6bc9457d (
plain)
1
2
3
4
5
6
7
8
9
10
|
""" docstring for file nullable_pattern.py """
from typing import Optional
class NullablePatterns:
def return_nullable_1(self) -> int | None:
""" Nullable return type using the | operator as mentioned in PEP 604, see https://peps.python.org/pep-0604 """
pass
def return_nullable_2(self) -> Optional[int]:
pass
|