Files
django-stubs/django-stubs/contrib/auth/tokens.pyi
2018-07-29 20:19:43 +03:00

12 lines
488 B
Python

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: ...