Ignore any exception via isinstance on Python 3.
(obj: object)
| 251 | |
| 252 | |
| 253 | def safe_isclass(obj: object) -> bool: |
| 254 | """Ignore any exception via isinstance on Python 3.""" |
| 255 | try: |
| 256 | return inspect.isclass(obj) |
| 257 | except Exception: |
| 258 | return False |
| 259 | |
| 260 | |
| 261 | def get_user_id() -> int | None: |
no outgoing calls