mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-18 18:05:58 +08:00
initial commit
This commit is contained in:
12
django/contrib/auth/tokens.pyi
Normal file
12
django/contrib/auth/tokens.pyi
Normal file
@@ -0,0 +1,12 @@
|
||||
from datetime import date
|
||||
from django.contrib.auth.models import User
|
||||
from typing import Optional
|
||||
|
||||
|
||||
class PasswordResetTokenGenerator:
|
||||
def _make_hash_value(self, user: User, timestamp: int) -> str: ...
|
||||
def _make_token_with_timestamp(self, user: User, timestamp: int) -> str: ...
|
||||
def _num_days(self, dt: date) -> int: ...
|
||||
def _today(self) -> date: ...
|
||||
def check_token(self, user: User, token: Optional[str]) -> bool: ...
|
||||
def make_token(self, user: User) -> str: ...
|
||||
Reference in New Issue
Block a user