@@ -170,7 +170,7 @@ class PropertyProcessor(EntryProcessor[R]):
170
170
`PropertyProcessor` is a base class for EntryProcessor implementations that depend on a ValueManipulator.
171
171
"""
172
172
173
- def __init__ (self , manipulator : ManipulatorExpression , use_is : bool = False ):
173
+ def __init__ (self , manipulator : ManipulatorExpression [ T , E ] , use_is : bool = False ):
174
174
"""
175
175
Construct a PropertyProcessor for the specified property name.
176
176
@@ -182,7 +182,7 @@ def __init__(self, manipulator: ManipulatorExpression, use_is: bool = False):
182
182
"""
183
183
super ().__init__ ()
184
184
if type (manipulator ) is str :
185
- self .manipulator : ManipulatorExpression = PropertyManipulator (manipulator , use_is )
185
+ self .manipulator : ManipulatorExpression [ T , E ] = PropertyManipulator (manipulator , use_is )
186
186
else :
187
187
self .manipulator = manipulator
188
188
@@ -222,7 +222,7 @@ class NumberMultiplier(PropertyProcessor[Numeric]):
222
222
"""
223
223
224
224
def __init__ (
225
- self , name_or_manipulator : ManipulatorExpression , multiplier : Numeric , post_multiplication : bool = False
225
+ self , name_or_manipulator : ManipulatorExpression [ T , E ] , multiplier : Numeric , post_multiplication : bool = False
226
226
):
227
227
"""
228
228
Construct an NumberMultiplier processor that will multiply a property value by a specified factor,
@@ -256,7 +256,9 @@ class NumberIncrementor(PropertyProcessor[Numeric]):
256
256
a property value of a numeric type.
257
257
"""
258
258
259
- def __init__ (self , name_or_manipulator : ManipulatorExpression , increment : Numeric , post_increment : bool = False ):
259
+ def __init__ (
260
+ self , name_or_manipulator : ManipulatorExpression [T , E ], increment : Numeric , post_increment : bool = False
261
+ ):
260
262
"""
261
263
Construct an :class:`coherence.processor.NumberIncrementor` processor that will increment a property
262
264
value by a specified amount, returning either the old or the new value as specified.
@@ -619,7 +621,7 @@ def extract(extractor: Optional[ExtractorExpression[T, E]] = None) -> EntryProce
619
621
620
622
@staticmethod
621
623
def increment (
622
- name_or_manipulator : ManipulatorExpression , increment : Numeric , post_increment : bool = False
624
+ name_or_manipulator : ManipulatorExpression [ T , E ] , increment : Numeric , post_increment : bool = False
623
625
) -> EntryProcessor [Numeric ]:
624
626
"""
625
627
Construct an :class:`coherence.processor.NumberIncrementor` processor that will increment a property
@@ -661,7 +663,7 @@ def invoke_mutator(method_name: str, *args: Any) -> EntryProcessor[R]:
661
663
662
664
@staticmethod
663
665
def multiply (
664
- name_or_manipulator : ManipulatorExpression , multiplier : Numeric , post_multiplication : bool = False
666
+ name_or_manipulator : ManipulatorExpression [ T , E ] , multiplier : Numeric , post_multiplication : bool = False
665
667
) -> EntryProcessor [Numeric ]:
666
668
"""
667
669
Construct an NumberMultiplier processor that will multiply a property value by a specified factor,
0 commit comments