Typings - unihan_etl.types

Typings for unihan-etl.

unihan_etl.types.StrPath: TypeAlias = str | ForwardRef('PathLike[str]')
data

os.PathLike or str

StrPath is based on typeshed’s.

unihan_etl.types.ColumnData
data

Sequence of UNIHAN field name strings.

alias of Sequence[str]

unihan_etl.types.UntypedNormalizedData
data

Normalized UNIHAN data as a sequence of field-value mappings.

alias of Sequence[Mapping[str, Any]]

unihan_etl.types.ExpandedExport
data

Expanded UNIHAN export with multi-value delimiters resolved.

alias of Sequence[Mapping[str, Any]]

class unihan_etl.types.Options

Bases: object

unihan-etl options.

class unihan_etl.types.ReportHookFn

Bases: Protocol

Progress bar callback for download().

class unihan_etl.types.UrlRetrieveFn

Bases: Protocol

Type annotation for urllib.request.urlretrieve().