Skip to content

Commit

Permalink
feat: add request type
Browse files Browse the repository at this point in the history
  • Loading branch information
st1020 committed Jul 26, 2023
1 parent 130f046 commit b163c54
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dongtai_common/utils/request_type.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
from typing import type_check_only

from rest_framework.request import Request as DRFRequest

from dongtai_common.models.user import User


@type_check_only
class Request(DRFRequest):
"""used in type check only."""

@property
def user(self) -> User:
...
Expand Down

0 comments on commit b163c54

Please sign in to comment.