webstation-broker
DeveloperPython referenceimports

imports.ImportRefusal

Why one member (or the whole import) cannot be placed.

Why one member (or the whole import) cannot be placed.

Attributes

attributereasonstr

One of REASONS.

attributememberOptional[str]

The member's zip name, or None for an archive-level refusal.

attributeexpectedOptional[str]

What would have been accepted, in words, or None.

attributedetailOptional[str]
= None

Specifics for this member, or None.

attributesuggest_emulatorOptional[str]
= None

An emulator that would take the member, or None.

Functions

func__post_init__(self) -> None

Refuse a reason outside the closed set.

Raises

  • ValueError: When reason is not in REASONS.
paramself

Returns

None
funcas_dict(self) -> dict[str, Optional[str]]

The refusal as the 422 lists it.

paramself

Returns

dict

The fields, plus docs: the site-relative anchor for the reason.

func__init__(self, reason, member, expected, detail=None, suggest_emulator=None) -> None
paramself
paramreasonstr
parammemberOptional[str]
paramexpectedOptional[str]
paramdetailOptional[str]
= None
paramsuggest_emulatorOptional[str]
= None

Returns

None

On this page