Skip to content

Commit

Permalink
Formmatting and conditional imports based on python version
Browse files Browse the repository at this point in the history
  • Loading branch information
daveraja committed Feb 13, 2024
1 parent fa2a9a3 commit 3a2d2ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clorm/orm/_typing.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sys
import inspect
import sys
from inspect import FrameInfo
from typing import Any, Dict, ForwardRef, Optional, Tuple, Type, TypeVar, Union, _eval_type, cast

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
clingo>=5.5.1
typing_extensions; python_version < '3.8'
typing_extensions; python_version < '3.11'
dataclasses; python_version == '3.6'
6 changes: 5 additions & 1 deletion tests/test_mypy_query.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import sys
from typing import Tuple

from typing_extensions import reveal_type
if sys.version_info < (3, 11):
from typing_extensions import reveal_type
else:
from typing import reveal_type

from clorm import FactBase, Predicate
from clorm.orm._queryimpl import GroupedQuery, UnGroupedQuery
Expand Down

0 comments on commit 3a2d2ca

Please sign in to comment.