mirror of
https://github.com/python/cpython.git
synced 2026-01-22 23:28:43 +00:00
(cherry picked from commit 3059042410)
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
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]
|