File: test31.py

package info (click to toggle)
pychecker 0.8.19-10
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,484 kB
  • ctags: 2,114
  • sloc: python: 9,968; sh: 98; makefile: 13
file content (38 lines) | stat: -rw-r--r-- 717 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
'doc'

class X:
  'doc'

class Y(X):
  'doc'

class Z(X):
  'doc'
  def __init__(self, arg):
    pass

def x():
  'should not cause a warning'
  print X()
  print Y()
  print Z('should create a warning since no __init__()')

def y():
  print X(a='should create a warning since no __init__()')
  print X('should create a warning since no __init__()')
  print Y(a='should create a warning since no __init__()')
  print Y('should create a warning since no __init__()')
  print Z(1, a='should create a warning since no __init__()')
  print Z(1, 2)

class A:
  'd'
  def a(self, a, b, c): pass
  def x(self, a, b, c): pass

class B(A):
  'd'
  def y(self):
      A.x(self, 1, 2, 3)
  def z(self):
      A.a(self, 1, 2, 3)