Skip to content

bagof.factories.builtins

Factories for builtin types whose constructor requires arguments.

Classes

RangeFactory

Bases: Factory[T]

Factory for range hints (an empty range).

Methods:

__call__
__call__() -> range

Return an empty range.

SliceFactory

Bases: Factory[T]

Factory for slice hints (the full slice [:]).

Methods:

__call__
__call__() -> slice

Return the full slice (equivalent to [:]).

MemoryViewFactory

Bases: Factory[T]

Factory for memoryview hints (a view over empty bytes).

Methods:

__call__
__call__() -> memoryview

Return a memoryview over empty bytes.