mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Check final support for dataclass
This commit is contained in:
@@ -393,14 +393,15 @@ def test_dataclass_signature(
|
|||||||
name: str
|
name: str
|
||||||
foo = 3
|
foo = 3
|
||||||
blob: ClassVar[str]
|
blob: ClassVar[str]
|
||||||
price: float
|
price: Final[float]
|
||||||
quantity: int = 0.0
|
quantity: int = 0.0
|
||||||
|
|
||||||
X("""
|
X("""
|
||||||
)
|
)
|
||||||
|
|
||||||
code = (
|
code = (
|
||||||
"from dataclasses import dataclass\nfrom typing import ClassVar\n"
|
"from dataclasses import dataclass\n"
|
||||||
|
+ "from typing import ClassVar, Final\n"
|
||||||
+ start
|
+ start
|
||||||
+ code
|
+ code
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user