Willkommen

Schön das Du dich hierher verirrt hast.
Nice to have you here.

Wie kann ich Dir helfen??
How can I help you???

Oder wie können wir uns gegenseitig helfen??
Or how can we help each other??

 

Python Properties in an easy and typed-checked way

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@created: 10.07.20
@author: eisenmenger
"""

# Imagine you're creating a class with several properties, then you will most likely use the built-in property function
# but as you maybe noticed before this will be not really conform with the ...

strongtyping
10 Jul. 20

Strongtyping package

The package can be installed via `pip install -i https://test.pypi.org/simple/ strongtyping`

The problem:
def multipler(a: int, b: int):
    return a * b


product = multipler(3, 4)
# >>> 12

# Some IDE's will/can highlight that one of the parameter doesn't match ...

strongtyping-pypi
08 Jun. 20

© 2017 - 2020 FtC-Webdev