Skip to content

Commit 9ea7329

Browse files
committed
Use ternary
1 parent d971fb5 commit 9ea7329

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

sqlalchemy_mptt/tests/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,7 @@
5353
from .cases.integrity import DataIntegrity
5454
from .cases.move_node import MoveAfter, MoveBefore, MoveInside
5555

56-
if typing.TYPE_CHECKING:
57-
BaseType = unittest.TestCase
58-
else:
59-
BaseType = object
56+
BaseType = unittest.TestCase if typing.TYPE_CHECKING else object
6057
DeclarativeBase = compat_layer.declarative_base()
6158

6259

0 commit comments

Comments
 (0)