Type stubs for not522/ac-library-python
Project description
ac-library-python-stubs
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
- python 3.9+
- ac-library-python v0.1.0
[!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 from0.1.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ac_library_python_stubs-0.1.0.20250812.tar.gz.
File metadata
- Download URL: ac_library_python_stubs-0.1.0.20250812.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eabf0d3828fa753f070cfaf12ae9a541a6a6e1285d7a4e4570feac9ec244d921
|
|
| MD5 |
f35362003f1aa15607ccd046cb707f0f
|
|
| BLAKE2b-256 |
012cd0deedd88930ebd2f8a1ca6bfa3edaaf1e748cf189c0a4b9c3bf0d3fa955
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ac_library_python_stubs-0.1.0.20250812.tar.gz -
Subject digest:
eabf0d3828fa753f070cfaf12ae9a541a6a6e1285d7a4e4570feac9ec244d921 - Sigstore transparency entry: 381210312
- Sigstore integration time:
-
Permalink:
kairi003/ac-library-python-stubs@272b4a6195967a92da147c42f94b0ba2be216416 -
Branch / Tag:
refs/tags/v0.1.0.20250812 - Owner: https://github.com/kairi003
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yaml@272b4a6195967a92da147c42f94b0ba2be216416 -
Trigger Event:
release
-
Statement type:
File details
Details for the file ac_library_python_stubs-0.1.0.20250812-py3-none-any.whl.
File metadata
- Download URL: ac_library_python_stubs-0.1.0.20250812-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28f9ee41ad0fede98f33a499c19be8d46a932e64413e2e317cb1ea780a1b7bf1
|
|
| MD5 |
76502b49dcbb2e189be9bf9f66ab446b
|
|
| BLAKE2b-256 |
b7d7668e40ed4dbfc5697218e48fe755bc2cdb1f3121e6d63d65fc59d1b28454
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ac_library_python_stubs-0.1.0.20250812-py3-none-any.whl -
Subject digest:
28f9ee41ad0fede98f33a499c19be8d46a932e64413e2e317cb1ea780a1b7bf1 - Sigstore transparency entry: 381210329
- Sigstore integration time:
-
Permalink:
kairi003/ac-library-python-stubs@272b4a6195967a92da147c42f94b0ba2be216416 -
Branch / Tag:
refs/tags/v0.1.0.20250812 - Owner: https://github.com/kairi003
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yaml@272b4a6195967a92da147c42f94b0ba2be216416 -
Trigger Event:
release
-
Statement type: