-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow simple container literals as default values #3703
Allow simple container literals as default values #3703
Conversation
JonathanPlasse
commented
Mar 24, 2023
- Implement Allow simple container literals as default values PyCQA/flake8-pyi#358
@@ -13,7 +13,7 @@ def f11(*, x: str = "x") -> None: ... # OK | |||
def f13( | |||
x: list[ | |||
str | |||
] = [ # Error PYI011 Only simple default values allowed for typed arguments | |||
] = [ # OK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like nested containers are disallowed -- is that right? And do we have any tests for those?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Yes, I will add the added tests from Allow simple container literals as default values PyCQA/flake8-pyi#358.
PR Check ResultsEcosystemℹ️ ecosystem check detected changes. (+0, -244, 0 error(s)) typeshed (+0, -244)
- stdlib/_compression.pyi:20:73: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/_dummy_thread.pyi:10:103: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/_dummy_threading.pyi:65:31: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/_sitebuiltins.pyi:13:69: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/_sitebuiltins.pyi:13:95: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/argparse.pyi:138:49: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/argparse.pyi:155:49: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/asyncio/windows_utils.pyi:18:71: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/builtins.pyi:1842:31: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/concurrent/futures/process.pyi:177:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/concurrent/futures/process.pyi:187:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/concurrent/futures/thread.pyi:56:37: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/configparser.pyi:104:37: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/configparser.pyi:105:43: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/configparser.pyi:72:37: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/configparser.pyi:73:43: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/configparser.pyi:88:37: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/configparser.pyi:89:43: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/copy.pyi:11:69: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/dataclasses.pyi:255:35: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/dataclasses.pyi:274:35: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/dataclasses.pyi:292:35: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/distutils/command/config.pyi:77:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/distutils/fancy_getopt.pyi:34:49: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/email/message.pyi:108:56: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/ftplib.pyi:109:59: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/functools.pyi:85:31: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/functools.pyi:86:30: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/functools.pyi:90:31: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/functools.pyi:91:30: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/getopt.pyi:3:67: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/getopt.pyi:4:71: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/http/client.pyi:161:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/http/cookiejar.pyi:102:47: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/importlib/__init__.pyi:12:31: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/inspect.pyi:453:44: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/inspect.pyi:454:52: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/inspect.pyi:455:42: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/lib2to3/pytree.pyi:60:126: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/locale.pyi:118:33: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/logging/handlers.pyi:181:48: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/mailcap.pyi:9:123: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/mimetypes.pyi:46:53: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/modulefinder.pyi:47:40: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/modulefinder.pyi:48:56: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/multiprocessing/context.pyi:75:35: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/multiprocessing/dummy/__init__.pyi:53:31: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/multiprocessing/dummy/__init__.pyi:54:37: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/multiprocessing/dummy/__init__.pyi:72:116: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/multiprocessing/managers.pyi:153:97: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/multiprocessing/managers.pyi:57:68: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/multiprocessing/managers.pyi:57:95: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/multiprocessing/pool.pyi:118:121: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/multiprocessing/pool.pyi:75:35: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/multiprocessing/pool.pyi:79:68: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/multiprocessing/pool.pyi:79:98: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/multiprocessing/pool.pyi:83:31: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/multiprocessing/pool.pyi:84:35: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/multiprocessing/process.pyi:20:31: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/multiprocessing/process.pyi:21:37: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/multiprocessing/util.pyi:53:31: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/multiprocessing/util.pyi:60:71: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/pdb.pyi:131:73: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/pickle.pyi:124:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/pickle.pyi:132:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/platform.pyi:36:60: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/platform.pyi:39:118: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/platform.pyi:39:73: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/pydoc.pyi:116:36: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/pydoc.pyi:117:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/pydoc.pyi:118:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/pydoc.pyi:129:36: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/pydoc.pyi:130:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/pydoc.pyi:139:36: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/pydoc.pyi:140:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/pydoc.pyi:141:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/pydoc.pyi:33:75: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/pydoc.pyi:43:91: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/sched.pyi:33:96: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/sched.pyi:36:97: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/shutil.pyi:185:51: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/smtplib.pyi:114:58: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/smtplib.pyi:115:57: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/smtplib.pyi:137:39: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/smtplib.pyi:138:39: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/smtplib.pyi:145:39: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/smtplib.pyi:146:39: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/sqlite3/dbapi2.pyi:380:63: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/string.pyi:50:60: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/string.pyi:51:65: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/subprocess.pyi:1873:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/subprocess.pyi:1904:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/subprocess.pyi:1936:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/subprocess.pyi:1967:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/subprocess.pyi:1998:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/subprocess.pyi:2029:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/subprocess.pyi:2062:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/subprocess.pyi:2092:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/subprocess.pyi:2123:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/subprocess.pyi:2153:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/subprocess.pyi:2183:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/subprocess.pyi:2213:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/subprocess.pyi:2245:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/subprocess.pyi:2274:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/subprocess.pyi:2304:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/subprocess.pyi:2333:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/subprocess.pyi:2362:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/subprocess.pyi:2391:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/subprocess.pyi:2421:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/subprocess.pyi:2446:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/subprocess.pyi:2472:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/subprocess.pyi:2497:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/subprocess.pyi:2522:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/subprocess.pyi:2547:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/threading.pyi:81:31: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:1006:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:1103:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:1724:30: PYI014 Only simple default values allowed for arguments
- stdlib/tkinter/__init__.pyi:1749:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:1868:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:1979:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:2031:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:2111:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:2224:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:2284:33: PYI014 Only simple default values allowed for arguments
- stdlib/tkinter/__init__.pyi:2285:43: PYI014 Only simple default values allowed for arguments
- stdlib/tkinter/__init__.pyi:2288:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:2309:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:2335:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:2355:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:2378:58: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:2382:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:2404:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:2431:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:2452:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:2475:79: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:2494:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:2580:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:2643:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:2747:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:2838:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:2910:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:3081:39: PYI014 Only simple default values allowed for arguments
- stdlib/tkinter/__init__.pyi:3095:74: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:3184:40: PYI014 Only simple default values allowed for arguments
- stdlib/tkinter/__init__.pyi:3225:60: PYI014 Only simple default values allowed for arguments
- stdlib/tkinter/__init__.pyi:3241:31: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:3294:31: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:3312:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:3452:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:3517:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:507:31: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:517:31: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:828:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:864:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:899:41: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/__init__.pyi:923:48: PYI014 Only simple default values allowed for arguments
- stdlib/tkinter/__init__.pyi:923:55: PYI014 Only simple default values allowed for arguments
- stdlib/tkinter/__init__.pyi:923:65: PYI014 Only simple default values allowed for arguments
- stdlib/tkinter/__init__.pyi:950:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/dialog.pyi:15:83: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/simpledialog.pyi:17:30: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:102:84: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:105:84: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:108:84: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:111:77: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:112:60: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:113:62: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:119:77: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:125:77: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:126:52: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:130:84: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:134:77: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:138:77: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:142:77: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:147:77: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:150:77: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:155:77: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:160:77: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:165:84: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:166:53: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:167:74: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:180:61: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:181:64: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:188:66: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:189:69: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:207:74: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:208:71: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:212:64: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:215:53: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:221:84: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:231:84: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:239:84: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:249:56: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:260:53: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:265:77: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:266:52: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:270:63: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:274:77: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:275:52: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:281:84: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:282:52: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:290:84: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:294:44: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:295:42: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:57:31: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:58:30: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:65:64: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:72:61: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:76:44: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:79:84: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:80:73: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:84:84: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:85:52: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:89:84: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/tkinter/tix.pyi:96:84: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/trace.pyi:37:37: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/trace.pyi:38:37: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/turtle.pyi:409:98: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/turtle.pyi:679:94: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/types.pyi:557:31: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/types.pyi:563:42: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/typing.pyi:801:72: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/typing_extensions.pyi:248:72: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/unittest/mock.pyi:262:52: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/unittest/mock.pyi:70:34: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/unittest/mock.pyi:77:29: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/unittest/suite.pyi:11:53: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/urllib/request.pyi:105:45: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/weakref.pyi:56:103: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/xml/dom/domreg.pyi:8:102: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/xml/dom/minidom.pyi:223:28: PYI014 Only simple default values allowed for arguments
- stdlib/xml/sax/__init__.pyi:31:50: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/xml/sax/__init__.pyi:39:46: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/xml/sax/saxutils.pyi:7:53: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/xml/sax/saxutils.pyi:8:55: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/xml/sax/saxutils.pyi:9:56: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/xmlrpc/client.pyi:233:120: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/xmlrpc/client.pyi:262:50: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/xmlrpc/client.pyi:291:50: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/xmlrpc/server.pyi:111:36: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/xmlrpc/server.pyi:112:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/xmlrpc/server.pyi:113:38: PYI011 [*] Only simple default values allowed for typed arguments
- stdlib/zipfile.pyi:214:74: PYI011 [*] Only simple default values allowed for typed arguments BenchmarkLinux
Windows
|
Nice to see. |
Thank you!! |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [ruff](https://togithub.com/charliermarsh/ruff) | `^0.0.259` -> `^0.0.260` | [![age](https://badges.renovateapi.com/packages/pypi/ruff/0.0.260/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/ruff/0.0.260/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/ruff/0.0.260/compatibility-slim/0.0.259)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/ruff/0.0.260/confidence-slim/0.0.259)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>charliermarsh/ruff</summary> ### [`v0.0.260`](https://togithub.com/charliermarsh/ruff/releases/tag/v0.0.260) [Compare Source](https://togithub.com/charliermarsh/ruff/compare/v0.0.259...v0.0.260) <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### Rules - \[`flake8-bugbear`] Add more immutable functions for `B008` by [@​rouge8](https://togithub.com/rouge8) in [https://github.com/charliermarsh/ruff/pull/3764](https://togithub.com/charliermarsh/ruff/pull/3764) - \[`flake8-bugbear`] Allow `pathlib.Path()` in `B008` by [@​rouge8](https://togithub.com/rouge8) in [https://github.com/charliermarsh/ruff/pull/3794](https://togithub.com/charliermarsh/ruff/pull/3794) - \[`flake8-bugbear`] Expand the scope of useless-expression (B018) by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3455](https://togithub.com/charliermarsh/ruff/pull/3455) - \[`flake8-bugbear`]: Implement rule `B031` by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [https://github.com/charliermarsh/ruff/pull/3680](https://togithub.com/charliermarsh/ruff/pull/3680) - \[`flake8-gettext`] Implement `flake8-gettext` by [@​leiserfg](https://togithub.com/leiserfg) in [https://github.com/charliermarsh/ruff/pull/3785](https://togithub.com/charliermarsh/ruff/pull/3785) - \[`flake8-logging-format`] Add support for `.log(level, msg)` calls in `flake8-logging-format` by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [https://github.com/charliermarsh/ruff/pull/3726](https://togithub.com/charliermarsh/ruff/pull/3726) - \[`flake8-logging-format`] Allow aliased `logging` module as a logger candidate by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [https://github.com/charliermarsh/ruff/pull/3718](https://togithub.com/charliermarsh/ruff/pull/3718) - \[`flake8-pyi`] Add autofix for `PYI014` by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3729](https://togithub.com/charliermarsh/ruff/pull/3729) - \[`flake8-pyi`] Implement `PYI012` by [@​JBLDKY](https://togithub.com/JBLDKY) in [https://github.com/charliermarsh/ruff/pull/3743](https://togithub.com/charliermarsh/ruff/pull/3743) - \[`flake8-pyi`] Implement `PYI015` by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3728](https://togithub.com/charliermarsh/ruff/pull/3728) - \[`flake8-simplify`] Fix SIM222 and SIM223 false negative by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3740](https://togithub.com/charliermarsh/ruff/pull/3740) - \[`isort`]: support submodules in known\_(first|third)\_party config options by [@​astaric](https://togithub.com/astaric) in [https://github.com/charliermarsh/ruff/pull/3768](https://togithub.com/charliermarsh/ruff/pull/3768) - \[`pycodestyle`] Use unicode-width to determine line-length instead of character count by [@​MichaReiser](https://togithub.com/MichaReiser) in [https://github.com/charliermarsh/ruff/pull/3714](https://togithub.com/charliermarsh/ruff/pull/3714) - \[`pydocstyle`] Implement autofix for `D403` by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3731](https://togithub.com/charliermarsh/ruff/pull/3731) - \[`pylint`] Avoid `useless-import alias` (`C0414`) in `.pyi` files by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3761](https://togithub.com/charliermarsh/ruff/pull/3761) - \[`pylint`] Exempt `PLR1711` and `RET501` if non-`None` annotation by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3705](https://togithub.com/charliermarsh/ruff/pull/3705) - \[`tryceratops`] Exempt return with side effects for TRY300 by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3780](https://togithub.com/charliermarsh/ruff/pull/3780) ##### Bug Fixes - Avoid parsing `ForwardRef` contents as type references by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3698](https://togithub.com/charliermarsh/ruff/pull/3698) - Avoid parsing f-strings in type annotations by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3699](https://togithub.com/charliermarsh/ruff/pull/3699) - Include `with` statements in complexity calculation by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3771](https://togithub.com/charliermarsh/ruff/pull/3771) - Use import alias locations for `pep8-naming` import rules by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3772](https://togithub.com/charliermarsh/ruff/pull/3772) - Allow `TID252` to fix all valid module paths by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3796](https://togithub.com/charliermarsh/ruff/pull/3796) - Fix SIM118 auto-fix by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3695](https://togithub.com/charliermarsh/ruff/pull/3695) - Avoid panics for implicitly concatenated forward references by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3700](https://togithub.com/charliermarsh/ruff/pull/3700) - Allow simple container literals as default values by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3703](https://togithub.com/charliermarsh/ruff/pull/3703) - Traverse over nested string type annotations by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3724](https://togithub.com/charliermarsh/ruff/pull/3724) - Use `wild::args()` and add `wild` as a dependency by [@​agriyakhetarpal](https://togithub.com/agriyakhetarpal) in [https://github.com/charliermarsh/ruff/pull/3739](https://togithub.com/charliermarsh/ruff/pull/3739) - Avoid overlong-line errors for lines that end with URLs by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3663](https://togithub.com/charliermarsh/ruff/pull/3663) - Sort statistics by count by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3748](https://togithub.com/charliermarsh/ruff/pull/3748) - Reduce explicit clones by [@​MichaReiser](https://togithub.com/MichaReiser) in [https://github.com/charliermarsh/ruff/pull/3793](https://togithub.com/charliermarsh/ruff/pull/3793) - Add flymake-ruff to docs by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3800](https://togithub.com/charliermarsh/ruff/pull/3800) #### New Contributors - [@​agriyakhetarpal](https://togithub.com/agriyakhetarpal) made their first contribution in [https://github.com/charliermarsh/ruff/pull/3739](https://togithub.com/charliermarsh/ruff/pull/3739) - [@​leiserfg](https://togithub.com/leiserfg) made their first contribution in [https://github.com/charliermarsh/ruff/pull/3741](https://togithub.com/charliermarsh/ruff/pull/3741) - [@​JBLDKY](https://togithub.com/JBLDKY) made their first contribution in [https://github.com/charliermarsh/ruff/pull/3743](https://togithub.com/charliermarsh/ruff/pull/3743) - [@​astaric](https://togithub.com/astaric) made their first contribution in [https://github.com/charliermarsh/ruff/pull/3768](https://togithub.com/charliermarsh/ruff/pull/3768) **Full Changelog**: astral-sh/ruff@v0.0.259...v0.0.260 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/ixm-one/pytest-cmake-presets). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4yMi4xIiwidXBkYXRlZEluVmVyIjoiMzUuMjIuMSJ9--> Signed-off-by: Renovate Bot <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [ruff](https://togithub.com/charliermarsh/ruff) | `==0.0.259` -> `==0.0.260` | [![age](https://badges.renovateapi.com/packages/pypi/ruff/0.0.260/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/ruff/0.0.260/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/ruff/0.0.260/compatibility-slim/0.0.259)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/ruff/0.0.260/confidence-slim/0.0.259)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>charliermarsh/ruff</summary> ### [`v0.0.260`](https://togithub.com/charliermarsh/ruff/releases/tag/v0.0.260) [Compare Source](https://togithub.com/charliermarsh/ruff/compare/v0.0.259...v0.0.260) <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### Rules - \[`flake8-bugbear`] Add more immutable functions for `B008` by [@​rouge8](https://togithub.com/rouge8) in [https://github.com/charliermarsh/ruff/pull/3764](https://togithub.com/charliermarsh/ruff/pull/3764) - \[`flake8-bugbear`] Allow `pathlib.Path()` in `B008` by [@​rouge8](https://togithub.com/rouge8) in [https://github.com/charliermarsh/ruff/pull/3794](https://togithub.com/charliermarsh/ruff/pull/3794) - \[`flake8-bugbear`] Expand the scope of useless-expression (B018) by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3455](https://togithub.com/charliermarsh/ruff/pull/3455) - \[`flake8-bugbear`]: Implement rule `B031` by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [https://github.com/charliermarsh/ruff/pull/3680](https://togithub.com/charliermarsh/ruff/pull/3680) - \[`flake8-gettext`] Implement `flake8-gettext` by [@​leiserfg](https://togithub.com/leiserfg) in [https://github.com/charliermarsh/ruff/pull/3785](https://togithub.com/charliermarsh/ruff/pull/3785) - \[`flake8-logging-format`] Add support for `.log(level, msg)` calls in `flake8-logging-format` by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [https://github.com/charliermarsh/ruff/pull/3726](https://togithub.com/charliermarsh/ruff/pull/3726) - \[`flake8-logging-format`] Allow aliased `logging` module as a logger candidate by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [https://github.com/charliermarsh/ruff/pull/3718](https://togithub.com/charliermarsh/ruff/pull/3718) - \[`flake8-pyi`] Add autofix for `PYI014` by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3729](https://togithub.com/charliermarsh/ruff/pull/3729) - \[`flake8-pyi`] Implement `PYI012` by [@​JBLDKY](https://togithub.com/JBLDKY) in [https://github.com/charliermarsh/ruff/pull/3743](https://togithub.com/charliermarsh/ruff/pull/3743) - \[`flake8-pyi`] Implement `PYI015` by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3728](https://togithub.com/charliermarsh/ruff/pull/3728) - \[`flake8-simplify`] Fix SIM222 and SIM223 false negative by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3740](https://togithub.com/charliermarsh/ruff/pull/3740) - \[`isort`]: support submodules in known\_(first|third)\_party config options by [@​astaric](https://togithub.com/astaric) in [https://github.com/charliermarsh/ruff/pull/3768](https://togithub.com/charliermarsh/ruff/pull/3768) - \[`pycodestyle`] Use unicode-width to determine line-length instead of character count by [@​MichaReiser](https://togithub.com/MichaReiser) in [https://github.com/charliermarsh/ruff/pull/3714](https://togithub.com/charliermarsh/ruff/pull/3714) - \[`pydocstyle`] Implement autofix for `D403` by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3731](https://togithub.com/charliermarsh/ruff/pull/3731) - \[`pylint`] Avoid `useless-import alias` (`C0414`) in `.pyi` files by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3761](https://togithub.com/charliermarsh/ruff/pull/3761) - \[`pylint`] Exempt `PLR1711` and `RET501` if non-`None` annotation by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3705](https://togithub.com/charliermarsh/ruff/pull/3705) - \[`tryceratops`] Exempt return with side effects for TRY300 by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3780](https://togithub.com/charliermarsh/ruff/pull/3780) ##### Bug Fixes - Avoid parsing `ForwardRef` contents as type references by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3698](https://togithub.com/charliermarsh/ruff/pull/3698) - Avoid parsing f-strings in type annotations by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3699](https://togithub.com/charliermarsh/ruff/pull/3699) - Include `with` statements in complexity calculation by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3771](https://togithub.com/charliermarsh/ruff/pull/3771) - Use import alias locations for `pep8-naming` import rules by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3772](https://togithub.com/charliermarsh/ruff/pull/3772) - Allow `TID252` to fix all valid module paths by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3796](https://togithub.com/charliermarsh/ruff/pull/3796) - Fix SIM118 auto-fix by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3695](https://togithub.com/charliermarsh/ruff/pull/3695) - Avoid panics for implicitly concatenated forward references by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3700](https://togithub.com/charliermarsh/ruff/pull/3700) - Allow simple container literals as default values by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3703](https://togithub.com/charliermarsh/ruff/pull/3703) - Traverse over nested string type annotations by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3724](https://togithub.com/charliermarsh/ruff/pull/3724) - Use `wild::args()` and add `wild` as a dependency by [@​agriyakhetarpal](https://togithub.com/agriyakhetarpal) in [https://github.com/charliermarsh/ruff/pull/3739](https://togithub.com/charliermarsh/ruff/pull/3739) - Avoid overlong-line errors for lines that end with URLs by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3663](https://togithub.com/charliermarsh/ruff/pull/3663) - Sort statistics by count by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3748](https://togithub.com/charliermarsh/ruff/pull/3748) - Reduce explicit clones by [@​MichaReiser](https://togithub.com/MichaReiser) in [https://github.com/charliermarsh/ruff/pull/3793](https://togithub.com/charliermarsh/ruff/pull/3793) - Add flymake-ruff to docs by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3800](https://togithub.com/charliermarsh/ruff/pull/3800) #### New Contributors - [@​agriyakhetarpal](https://togithub.com/agriyakhetarpal) made their first contribution in [https://github.com/charliermarsh/ruff/pull/3739](https://togithub.com/charliermarsh/ruff/pull/3739) - [@​leiserfg](https://togithub.com/leiserfg) made their first contribution in [https://github.com/charliermarsh/ruff/pull/3741](https://togithub.com/charliermarsh/ruff/pull/3741) - [@​JBLDKY](https://togithub.com/JBLDKY) made their first contribution in [https://github.com/charliermarsh/ruff/pull/3743](https://togithub.com/charliermarsh/ruff/pull/3743) - [@​astaric](https://togithub.com/astaric) made their first contribution in [https://github.com/charliermarsh/ruff/pull/3768](https://togithub.com/charliermarsh/ruff/pull/3768) **Full Changelog**: astral-sh/ruff@v0.0.259...v0.0.260 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/allenporter/pyrainbird). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4yMy4zIiwidXBkYXRlZEluVmVyIjoiMzUuMjMuMyJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [ruff](https://togithub.com/charliermarsh/ruff) | `==0.0.259` -> `==0.0.260` | [![age](https://badges.renovateapi.com/packages/pypi/ruff/0.0.260/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/ruff/0.0.260/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/ruff/0.0.260/compatibility-slim/0.0.259)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/ruff/0.0.260/confidence-slim/0.0.259)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>charliermarsh/ruff</summary> ### [`v0.0.260`](https://togithub.com/charliermarsh/ruff/releases/tag/v0.0.260) [Compare Source](https://togithub.com/charliermarsh/ruff/compare/v0.0.259...v0.0.260) <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### Rules - \[`flake8-bugbear`] Add more immutable functions for `B008` by [@​rouge8](https://togithub.com/rouge8) in [https://github.com/charliermarsh/ruff/pull/3764](https://togithub.com/charliermarsh/ruff/pull/3764) - \[`flake8-bugbear`] Allow `pathlib.Path()` in `B008` by [@​rouge8](https://togithub.com/rouge8) in [https://github.com/charliermarsh/ruff/pull/3794](https://togithub.com/charliermarsh/ruff/pull/3794) - \[`flake8-bugbear`] Expand the scope of useless-expression (B018) by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3455](https://togithub.com/charliermarsh/ruff/pull/3455) - \[`flake8-bugbear`]: Implement rule `B031` by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [https://github.com/charliermarsh/ruff/pull/3680](https://togithub.com/charliermarsh/ruff/pull/3680) - \[`flake8-gettext`] Implement `flake8-gettext` by [@​leiserfg](https://togithub.com/leiserfg) in [https://github.com/charliermarsh/ruff/pull/3785](https://togithub.com/charliermarsh/ruff/pull/3785) - \[`flake8-logging-format`] Add support for `.log(level, msg)` calls in `flake8-logging-format` by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [https://github.com/charliermarsh/ruff/pull/3726](https://togithub.com/charliermarsh/ruff/pull/3726) - \[`flake8-logging-format`] Allow aliased `logging` module as a logger candidate by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [https://github.com/charliermarsh/ruff/pull/3718](https://togithub.com/charliermarsh/ruff/pull/3718) - \[`flake8-pyi`] Add autofix for `PYI014` by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3729](https://togithub.com/charliermarsh/ruff/pull/3729) - \[`flake8-pyi`] Implement `PYI012` by [@​JBLDKY](https://togithub.com/JBLDKY) in [https://github.com/charliermarsh/ruff/pull/3743](https://togithub.com/charliermarsh/ruff/pull/3743) - \[`flake8-pyi`] Implement `PYI015` by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3728](https://togithub.com/charliermarsh/ruff/pull/3728) - \[`flake8-simplify`] Fix SIM222 and SIM223 false negative by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3740](https://togithub.com/charliermarsh/ruff/pull/3740) - \[`isort`]: support submodules in known\_(first|third)\_party config options by [@​astaric](https://togithub.com/astaric) in [https://github.com/charliermarsh/ruff/pull/3768](https://togithub.com/charliermarsh/ruff/pull/3768) - \[`pycodestyle`] Use unicode-width to determine line-length instead of character count by [@​MichaReiser](https://togithub.com/MichaReiser) in [https://github.com/charliermarsh/ruff/pull/3714](https://togithub.com/charliermarsh/ruff/pull/3714) - \[`pydocstyle`] Implement autofix for `D403` by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3731](https://togithub.com/charliermarsh/ruff/pull/3731) - \[`pylint`] Avoid `useless-import alias` (`C0414`) in `.pyi` files by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3761](https://togithub.com/charliermarsh/ruff/pull/3761) - \[`pylint`] Exempt `PLR1711` and `RET501` if non-`None` annotation by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3705](https://togithub.com/charliermarsh/ruff/pull/3705) - \[`tryceratops`] Exempt return with side effects for TRY300 by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3780](https://togithub.com/charliermarsh/ruff/pull/3780) ##### Bug Fixes - Avoid parsing `ForwardRef` contents as type references by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3698](https://togithub.com/charliermarsh/ruff/pull/3698) - Avoid parsing f-strings in type annotations by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3699](https://togithub.com/charliermarsh/ruff/pull/3699) - Include `with` statements in complexity calculation by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3771](https://togithub.com/charliermarsh/ruff/pull/3771) - Use import alias locations for `pep8-naming` import rules by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3772](https://togithub.com/charliermarsh/ruff/pull/3772) - Allow `TID252` to fix all valid module paths by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3796](https://togithub.com/charliermarsh/ruff/pull/3796) - Fix SIM118 auto-fix by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3695](https://togithub.com/charliermarsh/ruff/pull/3695) - Avoid panics for implicitly concatenated forward references by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3700](https://togithub.com/charliermarsh/ruff/pull/3700) - Allow simple container literals as default values by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3703](https://togithub.com/charliermarsh/ruff/pull/3703) - Traverse over nested string type annotations by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3724](https://togithub.com/charliermarsh/ruff/pull/3724) - Use `wild::args()` and add `wild` as a dependency by [@​agriyakhetarpal](https://togithub.com/agriyakhetarpal) in [https://github.com/charliermarsh/ruff/pull/3739](https://togithub.com/charliermarsh/ruff/pull/3739) - Avoid overlong-line errors for lines that end with URLs by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3663](https://togithub.com/charliermarsh/ruff/pull/3663) - Sort statistics by count by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3748](https://togithub.com/charliermarsh/ruff/pull/3748) - Reduce explicit clones by [@​MichaReiser](https://togithub.com/MichaReiser) in [https://github.com/charliermarsh/ruff/pull/3793](https://togithub.com/charliermarsh/ruff/pull/3793) - Add flymake-ruff to docs by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3800](https://togithub.com/charliermarsh/ruff/pull/3800) #### New Contributors - [@​agriyakhetarpal](https://togithub.com/agriyakhetarpal) made their first contribution in [https://github.com/charliermarsh/ruff/pull/3739](https://togithub.com/charliermarsh/ruff/pull/3739) - [@​leiserfg](https://togithub.com/leiserfg) made their first contribution in [https://github.com/charliermarsh/ruff/pull/3741](https://togithub.com/charliermarsh/ruff/pull/3741) - [@​JBLDKY](https://togithub.com/JBLDKY) made their first contribution in [https://github.com/charliermarsh/ruff/pull/3743](https://togithub.com/charliermarsh/ruff/pull/3743) - [@​astaric](https://togithub.com/astaric) made their first contribution in [https://github.com/charliermarsh/ruff/pull/3768](https://togithub.com/charliermarsh/ruff/pull/3768) **Full Changelog**: astral-sh/ruff@v0.0.259...v0.0.260 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/allenporter/flux-local). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4yMi4xIiwidXBkYXRlZEluVmVyIjoiMzUuMjIuMSJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>