Merge pull request #281 from zxzxwu/cleanup-transport

Replace | typing usage with Optional and Union
This commit is contained in:
zxzxwu
2023-09-13 13:31:41 +08:00
committed by GitHub
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 = '',