mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
needed by: py3-hypothesis -> py3-cryptography -> samba ref: https://gitlab.alpinelinux.org/alpine/aports/-/issues/17216
10 lines
223 B
Python
10 lines
223 B
Python
import attr
|
|
|
|
@attr.s
|
|
class SomeClass(object):
|
|
a_number = attr.ib(default=42)
|
|
list_of_numbers = attr.ib(default=attr.Factory(list))
|
|
|
|
a = SomeClass()
|
|
assert a.a_number == 42
|
|
assert isinstance(a.list_of_numbers, list)
|