-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from gkumbhat/add_fix_for_typing
Add fix for typing
- Loading branch information
Showing
5 changed files
with
49 additions
and
5 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
Empty file.
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,12 @@ | ||
# Standard | ||
from typing import Dict | ||
|
||
# Local | ||
import import_tracker | ||
|
||
with import_tracker.lazy_import_errors(): | ||
# Third Party | ||
from foo.bar import Bar | ||
|
||
def dummy_type_func(var) -> Dict[str, Bar]: | ||
pass |
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,12 @@ | ||
# Standard | ||
from typing import Union | ||
|
||
# Local | ||
import import_tracker | ||
|
||
with import_tracker.lazy_import_errors(): | ||
# Third Party | ||
from foo import Bar | ||
|
||
def dummy_type_func(var) -> Union[str, Bar]: | ||
pass |
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