Skip to content

Commit

Permalink
Revert accidental quote change again
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Jul 27, 2024
1 parent 1107201 commit b163082
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions jaraco/collections/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
from _typeshed import SupportsKeysAndGetItem
from typing_extensions import Self

_T = TypeVar("_T")
_RangeMapKT = TypeVar("_RangeMapKT", bound=_SupportsComparison)
_VT = TypeVar("_VT")
_T = TypeVar('_T')
_RangeMapKT = TypeVar('_RangeMapKT', bound=_SupportsComparison)
_VT = TypeVar('_VT')

_Matchable = Union[Callable, Container, Iterable, re.Pattern]

Expand Down Expand Up @@ -274,7 +274,7 @@ def bounds(self) -> tuple[_RangeMapKT, _RangeMapKT]:
return (sorted_keys[RangeMap.first_item], sorted_keys[RangeMap.last_item])

# some special values for the RangeMap
undefined_value = type("RangeValueUndefined", (), {})()
undefined_value = type('RangeValueUndefined', (), {})()

class Item(int):
"""RangeMap Item"""
Expand Down Expand Up @@ -531,7 +531,7 @@ def _safe_getitem(cont, key, missing_result):
# raise the original exception, but use the original class
# name, not 'super'.
(message,) = e.args
message = message.replace("super", self.__class__.__name__, 1)
message = message.replace('super', self.__class__.__name__, 1)
e.args = (message,)
raise

Expand All @@ -554,7 +554,7 @@ def invert_map(map):
"""
res = dict((v, k) for k, v in map.items())
if not len(res) == len(map):
raise ValueError("Key conflict in inverted mapping")
raise ValueError('Key conflict in inverted mapping')
return res


Expand Down Expand Up @@ -796,7 +796,7 @@ class FrozenDict(collections.abc.Mapping, collections.abc.Hashable):
True
"""

__slots__ = ["__data"]
__slots__ = ['__data']

def __new__(cls, *args, **kwargs):
self = super().__new__(cls)
Expand Down Expand Up @@ -1024,7 +1024,7 @@ class FreezableDefaultDict(collections.defaultdict): # type: ignore
"""

def __missing__(self, key):
return getattr(self, "_frozen", super().__missing__)(key)
return getattr(self, '_frozen', super().__missing__)(key)

def freeze(self):
self._frozen = lambda key: self.default_factory()
Expand Down

0 comments on commit b163082

Please sign in to comment.