Skip to content

Commit

Permalink
🎨 Run formatter
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav-Kumbhat <[email protected]>
  • Loading branch information
gkumbhat committed Aug 12, 2022
1 parent c2ffeee commit 3d203e0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
1 change: 0 additions & 1 deletion import_tracker/lazy_import_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ def _make_extras_import_error(
# Get the set of extras modules from the library
extras_modules = get_extras_modules()


# Look through frames in the stack to see if there's an extras module
extras_module = None

Expand Down
5 changes: 4 additions & 1 deletion test/sample_libs/type_check_deps/type_check_dict.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import import_tracker
# Standard
from typing import Dict

# Local
import import_tracker

with import_tracker.lazy_import_errors():
# Third Party
from foo.bar import Bar
Expand Down
5 changes: 4 additions & 1 deletion test/sample_libs/type_check_deps/type_check_union.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import import_tracker
# Standard
from typing import Union

# Local
import import_tracker

with import_tracker.lazy_import_errors():
# Third Party
from foo import Bar
Expand Down
6 changes: 5 additions & 1 deletion test/test_lazy_import_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,16 +434,20 @@ def test_lazy_import_error_import_time_dep():
# Third Party
from decorator_deps import opt_decorator


def test_lazy_import_error_type_dict():
"""Test lazy import error for the case where the call to optional
dependency happens because of type check for Dict
"""

# Third Party
from type_check_deps import type_check_dict


def test_lazy_import_error_type_union():
"""Test lazy import error for the case where the call to optional
dependency happens because of type check for Union
"""

from type_check_deps import type_check_union
# Third Party
from type_check_deps import type_check_union

0 comments on commit 3d203e0

Please sign in to comment.