Skip to content
This repository was archived by the owner on Feb 20, 2022. It is now read-only.

Commit 5c55e27

Browse files
committed
readme image update
1 parent aaf8fa3 commit 5c55e27

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

preview.png

-50 KB
Loading

tests/Python3.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
from math import pi as PI
2+
from module import Klass
3+
4+
def class_decorator(cls):
5+
cls.__call__ = lambda self: print('Cabbage!')
6+
return cls
7+
8+
@class_decorator
9+
class Class(Klass):
10+
11+
@property
12+
def property(self):
13+
temp, ellipsis = self._property
14+
return {temp} if temp%0x12f2 else set()
15+
@property.setter
16+
def property(self, value):
17+
try:
18+
temp = value//0o123
19+
except TypeError:
20+
temp = 1.
21+
def do_something():
22+
nonlocal temp
23+
return temp, ...
24+
self._property = do_something()
25+
26+
def __init__(self, *args, **kwargs):
27+
super().__init__(*args, **kwargs)
28+
print("I'm", "alive!", sep='\n')
29+
30+
def func(self: 'Class', domain: [0b00, PI], opt:bool=True) -> None:
31+
""" doc string """
32+
# Comment
33+
x, y, z = r'[[]', R'[]]', r'[^a-zA-Z_]'
34+
35+
if __name__ == '__main__':
36+
c = Class()
37+
c.func(.12)
38+
c.property = 0b1011101110

0 commit comments

Comments
 (0)