@@ -73,7 +73,7 @@ def _key_prefix(
7373 return p .key_prefix
7474 elif isinstance (p , functools .partial ):
7575 return p .func .__qualname__ # pylint: disable=attribute-error
76- return p .__qualname__ # pylint: disable=attribute-error
76+ return p .__qualname__ # pylint: disable=attribute-error # pyrefly: ignore[missing-attribute]
7777
7878
7979def _combined_key_prefix (
@@ -496,7 +496,7 @@ def to_processor(self) -> Processor:
496496 in the input stream.
497497 """
498498 return _ProcessorWrapper (
499- map_processor .map_part_function (
499+ map_processor .map_part_function ( # pyrefly: ignore[bad-argument-type]
500500 _chain_part_processors (
501501 [self ],
502502 task_name = self .key_prefix ,
@@ -810,7 +810,7 @@ def is_excluded_from_trace(self) -> bool:
810810 # Excluded from tracing when the chain contains a single or no processor.
811811 return ',' not in self .trace_name
812812
813- def __add__ (
813+ def __add__ ( # pyrefly: ignore[bad-override]
814814 self , other : Processor | PartProcessor
815815 ) -> Processor | PartProcessor :
816816 if isinstance (other , _ChainPartProcessor ):
@@ -855,7 +855,7 @@ def __init__(
855855 name : str | None = None ,
856856 is_excluded_from_trace : bool | None = None ,
857857 ):
858- self .call = fn
858+ self .call = fn # pyrefly: ignore[bad-assignment]
859859 self .name = name
860860 self ._is_excluded_from_trace = is_excluded_from_trace
861861
@@ -880,7 +880,7 @@ def trace_name(self) -> str:
880880 default_name = self .call .__class__ .__name__
881881 if default_name == 'function' :
882882 default_name = self .call .__name__
883- return getattr (self .call , 'trace_name' , default_name )
883+ return getattr (self .call , 'trace_name' , default_name ) # pyrefly: ignore[bad-return]
884884
885885 @functools .cached_property
886886 def trace_module (self ) -> str :
@@ -1295,35 +1295,35 @@ async def part_processor(
12951295 match_fns .append (p .match )
12961296 parallel_processor = _CaptureReservedSubstreams (
12971297 output_queue ,
1298- map_processor .parallel_part_functions (
1298+ map_processor .parallel_part_functions ( # pyrefly: ignore[bad-argument-type]
12991299 processors ,
13001300 match_fns ,
13011301 with_default_output = passthrough_fallback ,
13021302 with_always_output = passthrough_always ,
13031303 ),
13041304 )
13051305 # Processed content
1306- content = parallel_processor (content )
1306+ content = parallel_processor (content ) # pyrefly: ignore[bad-assignment]
13071307 create_task (
13081308 # Place output processed output parts on the queue.
1309- _enqueue_content (content , output_queue )
1309+ _enqueue_content (content , output_queue ) # pyrefly: ignore[bad-argument-type]
13101310 )
13111311 while (part := await output_queue .get ()) is not None :
13121312 yield part
13131313 output_queue .task_done ()
13141314
1315- return part_processor
1315+ return part_processor # pyrefly: ignore[bad-return]
13161316
13171317
1318- @part_processor_function (match_fn = lambda _ : False )
1318+ @part_processor_function (match_fn = lambda _ : False ) # pyrefly: ignore[bad-argument-type]
13191319async def _passthrough_fallback (
13201320 content : ProcessorPart ,
13211321) -> AsyncIterable [ProcessorPart ]:
13221322 """Passthrough fallback used for the // operations."""
13231323 yield content
13241324
13251325
1326- @part_processor_function (match_fn = lambda _ : False )
1326+ @part_processor_function (match_fn = lambda _ : False ) # pyrefly: ignore[bad-argument-type]
13271327async def _passthrough_always (
13281328 content : ProcessorPart ,
13291329) -> AsyncIterable [ProcessorPart ]:
@@ -1652,7 +1652,7 @@ async def call(
16521652 part_cache = _PROCESSOR_PART_CACHE .get (self ._default_cache )
16531653
16541654 if part_cache is not None :
1655- content = await content .gather ()
1655+ content = await content .gather () # pyrefly: ignore[bad-assignment]
16561656
16571657 part_cache = part_cache .with_key_prefix (self .key_prefix )
16581658 key = part_cache .hash_fn (content )
0 commit comments