mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2025-12-27 22:59:48 +01:00
23 lines
245 B
Python
23 lines
245 B
Python
import attr
|
|
|
|
|
|
@attr.s(auto_attribs=True, kw_only=True)
|
|
class Foo:
|
|
x: int
|
|
y: int
|
|
|
|
a: int = 5
|
|
|
|
|
|
@attr.s(auto_attribs=True, kw_only=True)
|
|
class Bar(Foo):
|
|
z: int
|
|
|
|
|
|
foo = Foo(x=1, y=2)
|
|
|
|
bar = Bar(x=1, y=2, z=3)
|
|
|
|
print(foo)
|
|
print(bar)
|