Skip to content

Commit

Permalink
Fix type annotation for pre-Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
kesmit13 committed Oct 24, 2023
1 parent 71e3911 commit 07419c1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions singlestoredb/fusion/registry.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env python3
import os
import re
import sys
from typing import Dict
from typing import Optional
from typing import Type
Expand All @@ -13,10 +12,7 @@

_enabled = ('1', 'yes', 'on', 'enabled', 'true')
_handlers: Dict[str, Type[SQLHandler]] = {}
if sys.version_info < (3, 9):
_handlers_re: Optional[re.Pattern] = None
else:
_handlers_re: Optional[re.Pattern[str]] = None
_handlers_re: Optional[re.Pattern[str]] = None


def register_handler(handler: Type[SQLHandler], overwrite: bool = False) -> None:
Expand Down

0 comments on commit 07419c1

Please sign in to comment.