Skip to main content

static_parameters
-------------
Simple decorators to raise a TypeError, if parameters
and it's static type added to the description __doc__
as such (parameter_name: str) not satisfied.

Example:
from static_parameters import (
function_parameters,
class_parameters
)

@function_parameters
def example(a, b):
'''Some example to demo ((a: str)) ((b: str))'''
return a + b

# For all methods in a class

@class_parameters(function_parameters)
class Example:
def exm1(a, b):
''' ((a: bool)), ((b: int))

def exm2():
...

Release files for static_parameters 0.4

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

Source distribution (sdist)

Source distribution for static_parameters 0.4
File Size Uploaded
static_parameters-0.4.tar.gz 2.7 kB Details

Release files / static_parameters-0.4.tar.gz

Download URL static_parameters-0.4.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a107c504ee431a1fd21876c3dc00b8253aad66fad527887025e07e38fc392053
BLAKE2b-256 checksum
How to use checksums
edcdc9e448690b21e3b6183b9f976d7cc6744570daa79025db898bda359e7b09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4 This release

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

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