Skip to main content

Type stubs for not522/ac-library-python

Project description

ac-library-python-stubs

日本語のREADME

A package that adds type stubs for static analysis to not522/ac-library-python.

Mainly adds Generic types to SegTree, LazySegmentTree, and FenwickTree.

Specifically, this allows you to specify types in places where typing.Any was previously used:

Mono = tuple[int, int]
def op(x: Mono, y: Mono) -> Mono:
    return (x[0] + y[0], x[1] + y[1])
seg = SegTree(op, (0, 0), 10)
# > seg.prod(l: int, r: int) -> Mono

fen = FenwickTree[float](10)
# > fen.add(x: int, v: float) -> None

Installation

pip install ac-library-python-stubs

Requirement

[!NOTE] As of 2025-07-21, https://atcoder.jp judge uses ac-library-python@58f324e, which shows package version 0.0.1, but the code has no differences from 0.1.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ac_library_python_stubs-0.1.0.20250812.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file ac_library_python_stubs-0.1.0.20250812.tar.gz.

File metadata

File hashes

Hashes for ac_library_python_stubs-0.1.0.20250812.tar.gz
Algorithm Hash digest
SHA256 eabf0d3828fa753f070cfaf12ae9a541a6a6e1285d7a4e4570feac9ec244d921
MD5 f35362003f1aa15607ccd046cb707f0f
BLAKE2b-256 012cd0deedd88930ebd2f8a1ca6bfa3edaaf1e748cf189c0a4b9c3bf0d3fa955

See more details on using hashes here.

Provenance

The following attestation bundles were made for ac_library_python_stubs-0.1.0.20250812.tar.gz:

Publisher: python-publish.yaml on kairi003/ac-library-python-stubs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ac_library_python_stubs-0.1.0.20250812-py3-none-any.whl.

File metadata

File hashes

Hashes for ac_library_python_stubs-0.1.0.20250812-py3-none-any.whl
Algorithm Hash digest
SHA256 28f9ee41ad0fede98f33a499c19be8d46a932e64413e2e317cb1ea780a1b7bf1
MD5 76502b49dcbb2e189be9bf9f66ab446b
BLAKE2b-256 b7d7668e40ed4dbfc5697218e48fe755bc2cdb1f3121e6d63d65fc59d1b28454

See more details on using hashes here.

Provenance

The following attestation bundles were made for ac_library_python_stubs-0.1.0.20250812-py3-none-any.whl:

Publisher: python-publish.yaml on kairi003/ac-library-python-stubs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page