pathex.managing.manager module

class Manager(expression: Expression, decomposer: DecomposerMatch | None)[source]

Bases: pathex.managing.mixins.ManagerMixin

A generic abstract manager.

match(label: Hashable) object[source]

This method is used to notify to the manager the presence of a given label.

The manager then see if this label is allowed by checking if the internal expression can generate the given label. If the label is allowed or not, a respective action is taken.

Parameters

label (Hashable) – The label to check for.