arcane-typing
This package provides advanced typing patterns for Python projects that use ty.
Features
Core utilities
TypeOf[expr]can be used to obtain ty's inferred type for an expression in a type annotation or type alias.Top[T]can be used to refer to the top-materialization ofT.Bottom[T]can be used to refer to the bottom-materialization ofT.
TypedDict features
TypeOf[Keys[T]]gives a union of string literals for the keys that can appear in aTypedDictT.
Type Narrowing
hasattr_of_type(obj, "name", T)narrowsobj.nameto typeTif the attribute exists and if it is an instance ofT(which can be a class or a union of classes)is_sequence_of(obj, T)checks thatobjis a sequence and that every element is an instance ofT(which can be a class or a union of classes). It narrowsobjtoSequence[T]on success.
Development
Use uv to run the following development tasks:
# Linting and formatting
uv run ruff check
uv run ruff format --check
# Type checking
TY_UV=scripts uv run ty check
# Markdown tests
uv run mdtest.py
Metadata
Release files for arcane-typing 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| arcane_typing-0.1.0.tar.gz | 3.8 kB | Without provenance | Details for arcane_typing-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| arcane_typing-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for arcane_typing-0.1.0-py3-none-any.whl |
Total release size: 9.6 kB
Release files / arcane_typing-0.1.0.tar.gz
| Download URL | arcane_typing-0.1.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0108ff6cf4e5da6ac8bc56f19d88af29f682340a523e2184b60599e08ebc5f8
|
|
BLAKE2b-256 checksum How to use checksums |
d671e110c7cf175bf7952a3e96e8954152afa9d134be67c5a9b1c5cec561479d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / arcane_typing-0.1.0-py3-none-any.whl
| Download URL | arcane_typing-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3110fd51c7feef4097ceee8371b046d5f72d5e921e80d3fa98335fc8b021a23e
|
|
BLAKE2b-256 checksum How to use checksums |
7b98bc6d429c52c574d2e26dfeeb4d180509d5546f6d4a88201fa175fe3bb3f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for arcane-typing 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.