Skip to content

Commit add60d0

Browse files
committed
remove type annotations
1 parent cf0d4c2 commit add60d0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

adminsortable2/admin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from pathlib import Path
33
from itertools import chain
44
from types import MethodType
5-
from typing import Optional
65

76
from django import VERSION as DJANGO_VERSION
87
from django.conf import settings
@@ -29,7 +28,7 @@
2928
__all__ = ['SortableAdminMixin', 'SortableInlineAdminMixin']
3029

3130

32-
def _parse_ordering_part(part: OrderBy | BaseExpression | F | str) -> tuple[str, Optional[str]]:
31+
def _parse_ordering_part(part):
3332
if isinstance(part, str):
3433
return ('-', part[1:]) if part.startswith('-') else ('', part)
3534
elif isinstance(part, OrderBy) and isinstance(part.expression, F):

0 commit comments

Comments
 (0)