Skip to main content

overload

this allows for overloads based upon type hints amongst other things

#just use @overload
@overload
def a()->None:
	"""this one prints 1st and returns none"""
	print("1st")
@overload
def a(a):print("2nd")
@overload
def a(a,b,*args):print("3rd")

a() # prints 1st
a(0) # prints 2nd
a(a=0) # prints 2nd
a(0,1,2,3,4,5) # prints 3rd

Metadata

Release files for hint-overload 0.0.0

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

Source distribution (sdist)

Source distribution for hint-overload 0.0.0
File Size Uploaded Provenance Actions
hint_overload-0.0.0.tar.gz 4.4 kB Without provenance Details for hint_overload-0.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hint-overload 0.0.0
File Interpreter ABI Platform Actions
hint_overload-0.0.0-py3-none-any.whl Python 3 none any Details for hint_overload-0.0.0-py3-none-any.whl

Total release size: 9.8 kB

Release files / hint_overload-0.0.0.tar.gz

Download URL hint_overload-0.0.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4effb5825051ade4a2ba4d874e38bce033e1647b063b4854b7810b6880eb9b4c
BLAKE2b-256 checksum
How to use checksums
076878510a23d4f76a892ca2ad8c9dddbe4af9e82cc2101b3e9a19c586361655
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.1

Release files / hint_overload-0.0.0-py3-none-any.whl

Download URL hint_overload-0.0.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40de8d199d059250adb7e336357a9434ff520a7e74bad4d462374dcd9b010b95
BLAKE2b-256 checksum
How to use checksums
4b0d98e77bb538fabfd9aea6927807af95abf3378f19e52bcb49046a25633f8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.1

Security for hint-overload 0.0.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.

Release history Release notifications | RSS feed

This release

0.0.0 This release

2 release files No provenance

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