Skip to main content

A project to allow overloading functions and methods based of the type hints

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hint_overload-0.0.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hint_overload-0.0.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file hint_overload-0.0.0.tar.gz.

File metadata

  • Download URL: hint_overload-0.0.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for hint_overload-0.0.0.tar.gz
Algorithm Hash digest
SHA256 4effb5825051ade4a2ba4d874e38bce033e1647b063b4854b7810b6880eb9b4c
MD5 c1cc409d5b57039585732dfa7e25e983
BLAKE2b-256 076878510a23d4f76a892ca2ad8c9dddbe4af9e82cc2101b3e9a19c586361655

See more details on using hashes here.

File details

Details for the file hint_overload-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: hint_overload-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for hint_overload-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40de8d199d059250adb7e336357a9434ff520a7e74bad4d462374dcd9b010b95
MD5 451ab549cd11c0970ef138688ce108a5
BLAKE2b-256 4b0d98e77bb538fabfd9aea6927807af95abf3378f19e52bcb49046a25633f8b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page