Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit074bbc7

Browse files
committed
Tiny import tweak
1 parentb05963c commit074bbc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎test/deprecation/test_attributes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Running pytest checks dynamic behavior as usual.
99
"""
1010

11-
fromitertoolsimportgroupby
11+
importitertools
1212
fromtypingimportType
1313

1414
importpytest
@@ -145,6 +145,6 @@ def test_private_module_alias_import() -> None:
145145
# to do a pre-check prior to retrieving the attribute for actual use. However, for
146146
# each import, all messages should be the same and should note what to use instead.
147147
messages_with_duplicates= [str(w.message)forwinctx]
148-
messages= [messageformessage,_ingroupby(messages_with_duplicates)]
148+
messages= [messageformessage,_initertools.groupby(messages_with_duplicates)]
149149
fortarget,messageinzip(_MODULE_ALIAS_TARGETS,messages,strict=True):
150150
assertmessage.endswith(f"Use{target.__name__} instead.")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp