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.20250803.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.20250803.tar.gz.

File metadata

File hashes

Hashes for ac_library_python_stubs-0.1.0.20250803.tar.gz
Algorithm Hash digest
SHA256 aba9a0ebbef65d23b31da5270d7b65d23b8768fc8e4d3d90e4170f25acdd1c12
MD5 4ba313fb399d9682d9323ad36e84e855
BLAKE2b-256 24f2ad6f28c6ca22c073cee47e38dfff0c233d7f9115c1b5a5c4af000faf2153

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for ac_library_python_stubs-0.1.0.20250803-py3-none-any.whl
Algorithm Hash digest
SHA256 17133ca28b1046182ac384620afacad01b3e3fc4f887e113f844428ce2852a48
MD5 c1649363c1facd3f1ec736d6b3f48a83
BLAKE2b-256 f314d33c870304c46703ef60b9a697f8db795e20d68942d6cabcf94cc3d8c735

See more details on using hashes here.

Provenance

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