Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
Merge branch 'typing_support' of github.com:NiklasKappel/ZnInit into …
Browse files Browse the repository at this point in the history
…typing_support
  • Loading branch information
NiklasKappel committed Feb 1, 2024
2 parents 5338037 + 33848af commit e3f33a2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions zninit/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
if sys.version_info >= (3, 11):
from typing import dataclass_transform
else:

def dataclass_transform(*args, **kwargs):
"""Empty decorator for Python < 3.11 support."""

Expand All @@ -21,6 +22,7 @@ def decorator(func):

return decorator


log = logging.getLogger(__name__)


Expand Down
20 changes: 10 additions & 10 deletions zninit/descriptor/desc.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@


def desc(
default=Empty,
owner=None,
instance=None,
name="",
use_repr: bool = True,
repr_func: Callable = repr,
check_types: bool = False,
metadata: Optional[dict] = None,
frozen: bool = False,
on_setattr: Optional[Callable] = None,
default=Empty,
owner=None,
instance=None,
name="",
use_repr: bool = True,
repr_func: Callable = repr,
check_types: bool = False,
metadata: Optional[dict] = None,
frozen: bool = False,
on_setattr: Optional[Callable] = None,
):
"""Create a Descriptor object.
Expand Down

0 comments on commit e3f33a2

Please sign in to comment.