mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 11:44:39 +07:00
GitOrigin-RevId: fe6f32a2cb8fa65b122968e1e9cf9d2126f92398
17 lines
701 B
Python
17 lines
701 B
Python
from dataclasses import dataclass
|
|
|
|
@dataclass(kw_only=True)
|
|
class Base:
|
|
a: int
|
|
b: int
|
|
|
|
@dataclass
|
|
class Derived(Base):
|
|
c: int
|
|
|
|
Base(<warning descr="Unexpected argument">0</warning>, <warning descr="Unexpected argument">0</warning><warning descr="Parameter 'a' unfilled"><warning descr="Parameter 'b' unfilled">)</warning></warning>
|
|
Base(<warning descr="Unexpected argument">0</warning>, a=0<warning descr="Parameter 'b' unfilled">)</warning>
|
|
Base(a=0, b=0)
|
|
|
|
Derived(0, <warning descr="Unexpected argument">0</warning>, <warning descr="Unexpected argument">0</warning><warning descr="Parameter 'a' unfilled"><warning descr="Parameter 'b' unfilled">)</warning></warning>
|
|
Derived(0, a=0, b=0) |