from type_constraint import BasicCheck, CheckMeta, Check
class A:
__metaclass__ = CheckMeta()
def f(self, i, j):
"""
@param i str
@param j str
"""
return i + j
a = A()
a.f('1', '2')
@BasicCheck
def test_func(i, j):
"""
this is a test function for type constraint
@param i int :this is the first operand
@param j float :this is the second operand
@return float
"""
return i / j
class A:
__metaclass__ = CheckMeta()
def f(self, i, j):
"""
@param i str
@param j str
"""
return i + j
a = A()
a.f('1', '2')
@BasicCheck
def test_func(i, j):
"""
this is a test function for type constraint
@param i int :this is the first operand
@param j float :this is the second operand
@return float
"""
return i / j
Metadata
Release files for type_constraint 0.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| type_constraint-0.0.10.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| type_constraint-0.0.10-py2.7.egg | Legacy Egg format | - | - | Details |
Total release size: 7.0 kB
Release files / type_constraint-0.0.10.tar.gz
| Download URL | type_constraint-0.0.10.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
933f5a8ddde6f24463407f342292c243e4762a1953f9b098cb878ecf1e185775
|
|
BLAKE2b-256 checksum How to use checksums |
94f4bae034a3321852bdf066bb86513e7b03edc6a3cb9266ec0d21be31b95c43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / type_constraint-0.0.10-py2.7.egg
| Download URL | type_constraint-0.0.10-py2.7.egg |
|---|---|
| Size | 4.7 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
a0d1f82be2918b7d39b139d6dc75175b3207e74567da74b9229ad2a873973de5
|
|
BLAKE2b-256 checksum How to use checksums |
76bc5113e34d8ec75a55d7d6cecab75f69b944d8a854b5b941a45e1650a53b35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |