Skip to content

Commit

Permalink
5.0: Rename _Range to _RangeT
Browse files Browse the repository at this point in the history
  • Loading branch information
sudosubin committed Apr 20, 2024
1 parent 1e2eda0 commit b4c339c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions django-stubs/contrib/postgres/fields/ranges.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ class RangeOperators:
NOT_GT: Literal["&<"]
ADJACENT_TO: Literal["-|-"]

_Range = TypeVar("_Range", bound=Range[Any])
_RangeT = TypeVar("_RangeT", bound=Range[Any])

class RangeField(models.Field[Any, _Range]):
class RangeField(models.Field[Any, _RangeT]):
empty_strings_allowed: bool
base_field: type[models.Field]
range_type: type[_Range]
range_type: type[_RangeT]
def get_prep_value(self, value: Any) -> Any | None: ...
def get_placeholder(self, value: Unused, compiler: Unused, connection: BaseDatabaseWrapper) -> str: ...
def to_python(self, value: Any) -> Any: ...
Expand Down

0 comments on commit b4c339c

Please sign in to comment.