(cls, port: Optional[int])
| 217 | |
| 218 | @classmethod |
| 219 | def _assert_port(cls, port: Optional[int]) -> Optional[int]: |
| 220 | if port is None: |
| 221 | return None |
| 222 | try: |
| 223 | return int(port) |
| 224 | except TypeError: |
| 225 | raise TypeError("Port argument must be an integer or None") |
| 226 | |
| 227 | @classmethod |
| 228 | def _assert_str(cls, v: str, paramname: str) -> str: |
no outgoing calls
no test coverage detected