File: class_craziness.py

package info (click to toggle)
python-libcst 1.8.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,240 kB
  • sloc: python: 78,096; makefile: 15; sh: 2
file content (28 lines) | stat: -rw-r--r-- 376 bytes parent folder | download | duplicates (5)
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
class Foo: ...

class Bar  :
    ...

class Old (  )  :
    gold : int


class OO ( Foo ) : ...

class OOP ( Foo , Bar, ) : pass

class OOPS (
    Foo ,

) :
    pass

class OOPSI ( Foo, * Bar , metaclass =
    foo ,
): pass

class OOPSIE ( list , *args, kw = arg , ** kwargs ) :
    what : does_this_even = mean

    def __init__(self) -> None:
        self.foo: Bar = Bar()