mirror of
https://github.com/fastapi/fastapi.git
synced 2026-10-25 03:09:50 -04:00
* Fix for - [FEATURE] Remove *, where it's not needed #1234 * 🔥 Remove unnecessary arg *, * 🎨 Update docs format highlight lines Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
1 parent
1b2a7546af
commit
7e2518350a
32 files changed
+32
-33
No files matched your search
@@ -91,7 +91,7 @@ def authenticate_user(fake_db, username: str, password: str):
|
||||
return user
|
||||
|
||||
|
||||
def create_access_token(*, data: dict, expires_delta: timedelta = None):
|
||||
def create_access_token(data: dict, expires_delta: timedelta = None):
|
||||
to_encode = data.copy()
|
||||
if expires_delta:
|
||||
expire = datetime.utcnow() + expires_delta
|
||||
|
||||
Reference in new issue
Block a user