Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 11, 2024
1 parent 069e728 commit d22edaa
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions python/pycrdt/_map.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from typing import TYPE_CHECKING, Any, Callable, Iterable, cast, overload
from typing import TYPE_CHECKING, Callable, Iterable, cast, overload

from ._base import BaseDoc, BaseEvent, BaseType, base_types, event_types
from ._pycrdt import Map as _Map
Expand Down Expand Up @@ -193,12 +193,10 @@ def __contains__(self, item: str) -> bool:
return item in self.keys()

@overload
def get(self, key: str) -> T | None:
...
def get(self, key: str) -> T | None: ...

@overload
def get(self, key: str, default_value: T_DefaultValue) -> T | T_DefaultValue:
...
def get(self, key: str, default_value: T_DefaultValue) -> T | T_DefaultValue: ...

def get(self, *args):
"""
Expand All @@ -220,12 +218,10 @@ def get(self, *args):
return default_value[0]

@overload
def pop(self, key: str) -> T:
...
def pop(self, key: str) -> T: ...

@overload
def pop(self, key: str, default_value: T_DefaultValue) -> T | T_DefaultValue:
...
def pop(self, key: str, default_value: T_DefaultValue) -> T | T_DefaultValue: ...

def pop(self, *args):
"""
Expand Down

0 comments on commit d22edaa

Please sign in to comment.