mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 11:53:49 +07:00
13 lines
210 B
Python
13 lines
210 B
Python
from dataclasses import dataclass, field
|
|
|
|
@dataclass(kw_only=True)
|
|
class Foo1:
|
|
bar: str = field()
|
|
|
|
@dataclass(kw_only=False)
|
|
class Foo2:
|
|
bar: str = field()
|
|
|
|
@dataclass
|
|
class Foo3:
|
|
bar: str = field() |