fqr.core.typ.obj module

Typing objects.

class string(**kwds)

Bases: str, Generic[StringType]

Generic str protocol.

capitalize(**kwds)

Helper for @overload to raise when called.

casefold(**kwds)

Helper for @overload to raise when called.

center(**kwds)

Helper for @overload to raise when called.

expandtabs(**kwds)

Helper for @overload to raise when called.

format(**kwds)

Helper for @overload to raise when called.

format_map(mapping) str

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

join(**kwds)

Helper for @overload to raise when called.

ljust(**kwds)

Helper for @overload to raise when called.

lower(**kwds)

Helper for @overload to raise when called.

lstrip(**kwds)

Helper for @overload to raise when called.

partition(**kwds)

Helper for @overload to raise when called.

replace(**kwds)

Helper for @overload to raise when called.

removeprefix(**kwds)

Helper for @overload to raise when called.

removesuffix(**kwds)

Helper for @overload to raise when called.

rjust(**kwds)

Helper for @overload to raise when called.

rpartition(**kwds)

Helper for @overload to raise when called.

rsplit(**kwds)

Helper for @overload to raise when called.

rstrip(**kwds)

Helper for @overload to raise when called.

split(**kwds)

Helper for @overload to raise when called.

splitlines(**kwds)

Helper for @overload to raise when called.

strip(**kwds)

Helper for @overload to raise when called.

swapcase(**kwds)

Helper for @overload to raise when called.

title(**kwds)

Helper for @overload to raise when called.

translate(table: lib.builtins._TranslateTable, /) string[StringType] | string[lib.t.Any]

Replace each character in the string using the given translation table.

table Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via getitem, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper(**kwds)

Helper for @overload to raise when called.

zfill(**kwds)

Helper for @overload to raise when called.

class ArrayProto(iterable: Iterable[AnyTypeCo], /)

Bases: Protocol, Collection[AnyTypeCo]

Protocol for a generic, single-parameter array.

_abc_impl = <_abc._abc_data object>
_is_protocol = True
class MappingProto(*args: Any, **kwargs: Any)

Bases: Protocol, Generic[AnyTypeCo, AnyOtherTypeCo]

Protocol for a generic, double-parameter mapping.

items() ItemsView[AnyTypeCo, AnyOtherTypeCo]
keys() KeysView[AnyTypeCo]
values() ValuesView[AnyOtherTypeCo]
_abc_impl = <_abc._abc_data object>
_is_protocol = True
class MetaLike(*args, **kwargs)

Bases: Protocol

Meta protocol.

_abc_impl = <_abc._abc_data object>
_is_protocol = True
class ObjectLike(*args, **kwargs)

Bases: Protocol

Object protocol.

get(_ObjectLike__key: typ.AnyString, _ObjectLike__default: AnyType = None) Any | AnyType
items() lib.t.ItemsView[typ.string[typ.snake_case], lib.t.Any]
classmethod keys() lib.t.KeysView[typ.string[typ.snake_case]]
pop(_ObjectLike__key: str, /, _ObjectLike__default: AnyType = '[[FQR_DEFAULT_PLACEHOLDER]]') AnyType | Any | Never
setdefault(_ObjectLike__key: str, _ObjectLike__value: Any) Never | None
update(other: ObjectLike, /) None
values() ValuesView[Any]
to_dict(camel_case: bool = False, include_null: bool = True) typ.SnakeDict | typ.CamelDict
_abc_impl = <_abc._abc_data object>
_is_protocol = True
class SupportsAnnotations(*args: Any, **kwargs: Any)

Bases: Protocol

Protocol for a typed object.

Typed objects include dataclass, TypedDict, pydantic.Model, and both fqr.Field and fqr.Object amongst others.

_abc_impl = <_abc._abc_data object>
_is_protocol = True
class SupportsParams(*args, **kwargs)

Bases: Protocol, Generic[Unpack[ArgsType]]

Protocol for a generic with any number of parameters.

_abc_impl = <_abc._abc_data object>
_is_protocol = True
class VariadicArrayProto(iterable: Iterable[AnyTypeCo], /)

Bases: ArrayProto[tuple[Unpack[ArgsType]]], Protocol

Protocol for a generic, any-parameter array.

_abc_impl = <_abc._abc_data object>
_is_protocol = True