mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-08-08 03:08:29 +02:00
Fix some type hints
This commit is contained in:
14
bookmarks/type_defs.py
Normal file
14
bookmarks/type_defs.py
Normal file
@@ -0,0 +1,14 @@
|
||||
"""
|
||||
Stuff in here is only used for type hints
|
||||
"""
|
||||
|
||||
from django import http
|
||||
from django.contrib.auth.models import AnonymousUser
|
||||
|
||||
from bookmarks.models import GlobalSettings, UserProfile, User
|
||||
|
||||
|
||||
class HttpRequest(http.HttpRequest):
|
||||
global_settings: GlobalSettings
|
||||
user_profile: UserProfile
|
||||
user: User | AnonymousUser
|
Reference in New Issue
Block a user