Skip to main content

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.

Metadata

Release files for ac-library-python-stubs 0.1.0.20250803

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ac-library-python-stubs 0.1.0.20250803
File Size Uploaded Provenance
ac_library_python_stubs-0.1.0.20250803.tar.gz 9.0 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ac-library-python-stubs 0.1.0.20250803
File Interpreter ABI Platform
ac_library_python_stubs-0.1.0.20250803-py3-none-any.whl Python 3 none any Details

Total release size: 15.6 kB

Release files / ac_library_python_stubs-0.1.0.20250803.tar.gz

Download URL ac_library_python_stubs-0.1.0.20250803.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
aba9a0ebbef65d23b31da5270d7b65d23b8768fc8e4d3d90e4170f25acdd1c12
BLAKE2b-256 checksum
How to use checksums
24f2ad6f28c6ca22c073cee47e38dfff0c233d7f9115c1b5a5c4af000faf2153
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 2, 2025.

Transparency log

Release files / ac_library_python_stubs-0.1.0.20250803-py3-none-any.whl

Download URL ac_library_python_stubs-0.1.0.20250803-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
17133ca28b1046182ac384620afacad01b3e3fc4f887e113f844428ce2852a48
BLAKE2b-256 checksum
How to use checksums
f314d33c870304c46703ef60b9a697f8db795e20d68942d6cabcf94cc3d8c735
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 2, 2025.

Transparency log

Security for ac-library-python-stubs 0.1.0.20250803

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ac_library_python_stubs-0.1.0.20250803.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 2, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page