Replace | typing usage with Optional and Union

This commit is contained in:
Josh Wu
2023-09-12 15:45:05 +08:00
parent 1e00c8f456
commit f39f5f531c
8 changed files with 19 additions and 11 deletions

View File

@@ -80,7 +80,7 @@ class BaseError(Exception):
def __init__(
self,
error_code: int | None,
error_code: Optional[int],
error_namespace: str = '',
error_name: str = '',
details: str = '',