§
|<ˆj¶ ã óŽ — d Z ddlmZ ddlmZ ddlZddlmZmZmZ ddl m
Z
mZ ddlm
Z
erddlmZ G d „ d
e
¦ « Zdd„ZdS )z#Variables checkers for Python code.é )Úannotations)Ú
TYPE_CHECKINGN)Ú argumentsÚbasesÚnodes)ÚBaseCheckerÚutils)Ú INFERENCE)ÚPyLinterc ó† — e Zd ZdZdZddddddifd œZd
ddd
ddœffZ ej dd¦ « dd„¦ « Z dd„Z
dd„ZdS )ÚMethodArgsCheckerzpBaseChecker for method_args.
Checks for
* missing-timeout
* positional-only-arguments-expected
Úmethod_args)zTMissing timeout argument for method '%s' can cause your program to hang indefinitelyúmissing-timeoutzïUsed when a method needs a 'timeout' parameter in order to avoid waiting for a long time. If no timeout is specified explicitly the default value is used. For example for 'requests' the program will never time out (i.e. hang indefinitely).zI`%s()` got some positional-only arguments passed as keyword arguments: %sú"positional-only-arguments-expectedz’Emitted when positional-only arguments have been passed as keyword arguments. Remove the keywords for the affected arguments in the function call.Ú
minversion)é é )ÚW3101ÚE3102ztimeout-methods)zrequests.api.deletezrequests.api.getzrequests.api.headzrequests.api.optionszrequests.api.patchzrequests.api.postzrequests.api.putzrequests.api.requestÚcsvz