Skip to content

APIv3KeywordsResponse

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  574010863["iconify_types.APIv3KeywordsResponse"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 574010863
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Return value of keywords().

Source code in src/pycons/iconify/iconify_types.py
class APIv3KeywordsResponse(TypedDict, total=False):
    """Return value of keywords()."""

    keyword: str
    """Keyword (one of keyword or prefix will be present)."""
    prefix: str
    """Prefix (one of keyword or prefix will be present)."""
    exists: Required[bool]
    """Whether the keyword exists."""
    matches: Required[list[str]]
    """Matching results."""
    invalid: Literal[True]
    """Indicates if the query was invalid."""

exists instance-attribute

exists: Required[bool]

Whether the keyword exists.

invalid instance-attribute

invalid: Literal[True]

Indicates if the query was invalid.

keyword instance-attribute

keyword: str

Keyword (one of keyword or prefix will be present).

matches instance-attribute

matches: Required[list[str]]

Matching results.

prefix instance-attribute

prefix: str

Prefix (one of keyword or prefix will be present).

:fa-brands-github: Show source on GitHub