mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-11-06 20:26:07 +08:00
Fix Paginator properties mistyped as Callables (#193)
Co-authored-by: Nick Sweeting <git@sweeting.me>
This commit is contained in:
1 parent
e143ba568c
commit
4d4b0003bd
2 files changed
+5
No files matched your search
@@ -32,7 +32,9 @@ class Paginator:
|
||||
def validate_number(self, number: Optional[Union[float, str]]) -> int: ...
|
||||
def get_page(self, number: Optional[int]) -> Page: ...
|
||||
def page(self, number: Union[int, str]) -> Page: ...
|
||||
@property
|
||||
def count(self) -> int: ...
|
||||
@property
|
||||
def num_pages(self) -> int: ...
|
||||
@property
|
||||
def page_range(self) -> range: ...
|
||||
|
||||
Reference in new issue
Block a user