Skip to content

Commit a8eda68

Browse files
committed
-
1 parent a03fb08 commit a8eda68

File tree

6 files changed

+11
-8
lines changed

6 files changed

+11
-8
lines changed

source_py3/python_toolbox/caching/decorators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
infinity = float('inf')
1919

2020

21-
class CLEAR_ENTIRE_CACHE:
22-
'''Sentinel object for clearing the entire cache'''
21+
class CLEAR_ENTIRE_CACHE(misc_tools.NonInstantiable):
22+
'''Sentinel object for clearing the entire cache.'''
2323

2424

2525
def _get_now():

source_py3/python_toolbox/combi/misc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33

44
import math
55

6+
from python_toolbox import misc_tools
67
from python_toolbox import math_tools
78
from python_toolbox import cute_iter_tools
89

910
infinity = float('inf')
1011

1112

12-
class MISSING_ELEMENT:
13+
class MISSING_ELEMENT(misc_tools.NonInstantiable):
1314
'''A placeholder for a missing element used in internal calculations.'''
1415

1516

source_py3/python_toolbox/cute_iter_tools.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@
1212
import numbers
1313

1414
from python_toolbox import sequence_tools
15+
from python_toolbox import misc_tools
1516
from python_toolbox import math_tools
1617

1718
infinity = float('inf')
1819

1920

20-
class _EMPTY_SENTINEL:
21+
class _EMPTY_SENTINEL(misc_tools.NonInstantiable):
2122
pass
2223

2324

@@ -482,7 +483,7 @@ def is_sorted(iterable, *, rising=True, strict=False, key=None):
482483
return True
483484

484485

485-
class _PUSHBACK_SENTINEL:
486+
class _PUSHBACK_SENTINEL(misc_tools.NonInstantiable):
486487
'''Sentinel used by `PushbackIterator` to say nothing was pushed back.'''
487488

488489
class PushbackIterator:

source_py3/python_toolbox/nifty_collections/bagging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from .abstract import Ordered, DefinitelyUnordered
2020

2121

22-
class _NO_DEFAULT:
22+
class _NO_DEFAULT(misc_tools.NonInstantiable):
2323
'''Stand-in value used in `_BaseBagMixin.pop` when no default is wanted.'''
2424

2525
class _ZeroCountAttempted(Exception):

source_py3/python_toolbox/nifty_collections/lazy_tuple.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
import collections
77
import itertools
88

9+
from python_toolbox import misc_tools
910
from python_toolbox import decorator_tools
1011
from python_toolbox import comparison_tools
1112

1213

1314
infinity = float('inf')
1415

15-
class _SENTINEL:
16+
class _SENTINEL(misc_tools.NonInstantiable):
1617
'''Sentinel used to detect the end of an iterable.'''
1718

1819

source_py3/python_toolbox/sequence_tools/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def flatten(iterable):
4747
return []
4848

4949

50-
class NO_FILL_VALUE:
50+
class NO_FILL_VALUE(misc_tools.NonInstantiable):
5151
'''
5252
Sentinel that means: Don't fill last partition with default fill values.
5353
'''

0 commit comments

Comments
 (0)