Skip to content

Commit

Permalink
Fix for Python < 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
erezsh committed Mar 20, 2024
1 parent 4007adf commit 192f1bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions runtype/dataclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
import random
from copy import copy
import dataclasses
import typing
from typing import Union, Any, Callable, TypeVar, Dict, Optional, overload
from typing import TYPE_CHECKING, ClassVar, Type, Self
from typing import TYPE_CHECKING, ClassVar, Type
from abc import ABC, abstractmethod
import inspect
import types
Expand Down Expand Up @@ -492,7 +493,7 @@ def __call__(
unsafe_hash: bool = False,
frozen: bool = True,
slots: bool = ...,
) -> Self:
) -> 'typing.Self':
...

@dataclass_transform(field_specifiers=(dataclasses.field, dataclasses.Field), frozen_default=True)
Expand Down

0 comments on commit 192f1bf

Please sign in to comment.