Skip to content

Instantly share code, notes, and snippets.

@podhmo
Created February 19, 2015 00:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save podhmo/1de261aaa41007a13cb1 to your computer and use it in GitHub Desktop.
Save podhmo/1de261aaa41007a13cb1 to your computer and use it in GitHub Desktop.
sample.py:6: undefined name 'h'
sample.py:9: undefined name 'z'
************* Module sample
E: 5, 8: Module 'sys' has no 'xxx' member (no-member)
E: 6, 4: Undefined variable 'h' (undefined-variable)
E: 7, 5: Too many positional arguments for function call (too-many-function-args)
E: 8, 5: No value for argument 'x' in function call (no-value-for-parameter)
E: 8, 5: No value for argument 'y' in function call (no-value-for-parameter)
E: 9,12: Too many positional arguments for function call (too-many-function-args)
E: 9,19: Undefined variable 'z' (undefined-variable)
E: 23, 9: Too many positional arguments for method call (too-many-function-args)
E: 24,16: No value for argument 'x' in method call (no-value-for-parameter)
import sys
def f(x, y):
sys.xxx() # sys.xxx is not defined
h() # h is not defined
g(1, 2, 3) # too many arguments
g() # too few arguments
return g(x, y, z) # z is undefined variable
def g(x, y):
return
class A(object):
def foo(self, x):
return x
def k():
a = A()
a.foo(1, 2) # too many arguments
return a.foo() # too few arguments
def l(a):
a.foo(1, 2) # too many arguments
a.foo() # too few arguments(this is hard to detect)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment