mirror of
https://github.com/home-assistant/operating-system.git
synced 2026-02-24 11:45:41 +00:00
* Update Buildroot to 2019-02.3 * Fix enter script * Update ova_defconfig * Fix network manager * Remove runc patches * Use same docker version * Fix build * Fix vmtools * Fix depens * Fix handling with tempfiles * Fix permission handling * Fix cp * Cleanup * Fix mounts
16 lines
199 B
Python
16 lines
199 B
Python
import attr
|
|
|
|
|
|
@attr.s
|
|
class Obj(object):
|
|
x = attr.ib()
|
|
y = attr.ib(default=1)
|
|
|
|
|
|
obj1 = Obj(2)
|
|
assert(obj1.x == 2)
|
|
assert(obj1.y == 1)
|
|
obj2 = Obj(3, 4)
|
|
assert(obj2.x == 3)
|
|
assert(obj2.y == 4)
|