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.20250722.tar.gz (8.9 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.20250722.tar.gz.

File metadata

File hashes

Hashes for ac_library_python_stubs-0.1.0.20250722.tar.gz
Algorithm Hash digest
SHA256 ee253313432e2a15c3066907e5d1ca81a5f31dc22e92554fd6451587773a743c
MD5 4b3f9742a04ab94405e55db07a6ad3ff
BLAKE2b-256 d01b8e37fb0ac579200ba1ee4470360eefef191da6129aa3285baa0973e554ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for ac_library_python_stubs-0.1.0.20250722.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.20250722-py3-none-any.whl.

File metadata

File hashes

Hashes for ac_library_python_stubs-0.1.0.20250722-py3-none-any.whl
Algorithm Hash digest
SHA256 f45b6901780692ff37e6398e8eb815551fbf1d324d6132335ef6e3f010ecc40e
MD5 1216f338839d957a133821d28fe902e5
BLAKE2b-256 84e03a865136d8a66ff12ef77ba647d6cdb8f65eb9f59a8a84836b239bc8c9c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for ac_library_python_stubs-0.1.0.20250722-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