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.20250812

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.20250812
File Size Uploaded Provenance
ac_library_python_stubs-0.1.0.20250812.tar.gz 9.0 kB With provenance Details

Built distribution (wheel)

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

Total release size: 15.7 kB

Release files / ac_library_python_stubs-0.1.0.20250812.tar.gz

Download URL ac_library_python_stubs-0.1.0.20250812.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
eabf0d3828fa753f070cfaf12ae9a541a6a6e1285d7a4e4570feac9ec244d921
BLAKE2b-256 checksum
How to use checksums
012cd0deedd88930ebd2f8a1ca6bfa3edaaf1e748cf189c0a4b9c3bf0d3fa955
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 11, 2025.

Transparency log

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

Download URL ac_library_python_stubs-0.1.0.20250812-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28f9ee41ad0fede98f33a499c19be8d46a932e64413e2e317cb1ea780a1b7bf1
BLAKE2b-256 checksum
How to use checksums
b7d7668e40ed4dbfc5697218e48fe755bc2cdb1f3121e6d63d65fc59d1b28454
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 11, 2025.

Transparency log

Security for ac-library-python-stubs 0.1.0.20250812

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.20250812.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 11, 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