jgdv.structs.locator.processor

Classes

LocationProcessor

A processor for basic strangs,

Module Contents

class jgdv.structs.locator.processor.LocationProcessor[source]

Bases: jgdv.structs.strang.processor.StrangBasicProcessor

A processor for basic strangs, the instance is assigned into Strang._processor

If the strang type implements _{call}_h, the processor uses that for a stage instead

pre_process(
cls,
input,
*args,
strict=False,
**kwargs,
) <Unknown>[source]

run before str.__new__ is called, to do early modification of the string Filters out extraneous duplicated separators

Parameters:
  • cls (type[T])

  • input (Any)

  • args (Any)

  • strict (bool)

  • kwargs (Any)

Return type:

jgdv._abstract.protocols.pre_processable.PreProcessResult[T]