(value: int | None, default: int)
| 20 | # Check types in this file with: python3 -m mypy <path> |
| 21 | |
| 22 | def get_or_default(value: int | None, default: int) -> int: |
| 23 | if value is not None: |
| 24 | return value |
| 25 | return value # Oops: should have returned "default" |
nothing calls this directly
no outgoing calls
no test coverage detected