mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix return type for dataclass callable type (PY-28442)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
||||
@dataclass
|
||||
class Point:
|
||||
x: int
|
||||
y: int
|
||||
|
||||
@classmethod
|
||||
def from_str(cls, string: str) -> 'Point':
|
||||
return cls(1, 2)
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
def dataclass(_cls=None, *, init=True, repr=True, eq=True, order=False,
|
||||
unsafe_hash=False, frozen=False):
|
||||
pass
|
||||
Reference in New Issue
Block a user