mirror of
https://github.com/python/cpython.git
synced 2025-12-11 11:31:05 +00:00
12 lines
204 B
Python
12 lines
204 B
Python
from __future__ import annotations
|
|
from dataclasses import dataclass
|
|
from typing import List
|
|
from typing import ClassVar as CV
|
|
|
|
@dataclass
|
|
class A:
|
|
a: List[str]
|
|
|
|
@dataclass
|
|
class B(A):
|
|
b: CV[int]
|