-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Option to extend the list of immutable calls (#204)
* add option to extend the list of immutable calls * update README.rst about `extend-immutable-calls` option Co-authored-by: Tobias Klare <[email protected]> Co-authored-by: Cooper Lees <[email protected]>
- Loading branch information
1 parent
c90fa65
commit c452048
Showing
4 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from typing import List | ||
|
||
import fastapi | ||
from fastapi import Query | ||
|
||
|
||
def this_is_okay_extended(db=fastapi.Depends(get_db)): | ||
... | ||
|
||
|
||
def this_is_okay_extended_second(data: List[str] = fastapi.Query(None)): | ||
... | ||
|
||
|
||
def this_is_not_okay_relative_import_not_listed(data: List[str] = Query(None)): | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters