Skip to content

Commit 1f423a2

Browse files
committed
Autoformat with ruff
1 parent ef1a419 commit 1f423a2

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

lazy_loader/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ def attach(package_name, submodules=None, submod_attrs=None):
3838
The typical way to call this function, replacing the above imports, is::
3939
4040
__getattr__, __dir__, __all__ = lazy.attach(
41-
__name__,
42-
['mysubmodule', 'anothersubmodule'],
43-
{'foo': ['someattr']}
41+
__name__, ["mysubmodule", "anothersubmodule"], {"foo": ["someattr"]}
4442
)
4543
4644
Parameters
@@ -162,7 +160,7 @@ def myfunc():
162160
fullname : str
163161
The full name of the module or submodule to import. For example::
164162
165-
sp = lazy.load('scipy') # import scipy as sp
163+
sp = lazy.load("scipy") # import scipy as sp
166164
167165
require : str
168166
A dependency requirement as defined in PEP-508. For example::
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
def some_func():
22
"""Function with same name as submodule."""
3-
pass

lazy_loader/tests/test_lazy_loader.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,5 +186,6 @@ def test_parallel_load():
186186
[
187187
sys.executable,
188188
os.path.join(os.path.dirname(__file__), "import_np_parallel.py"),
189-
]
189+
],
190+
check=True,
190191
)

0 commit comments

Comments
 (0)