stlehmann / pyads

Python wrapper for TwinCAT ADS
MIT License
264 stars 96 forks source link

Add type annotations for structs.py #175

Closed stlehmann closed 3 years ago

RobertoRoos commented 3 years ago

By the way, should we stick to the comment-style typing:

def func(foo, bar):
# type: (int, int) -> int
    return foo * bar

var = 5  # type: int

Or the more modern in-line style typing:

def func(foo: int, bar: int) -> int:
    return foo * bar

var: int = 5

Now both styles are being used.

stlehmann commented 3 years ago

We want to use type-annotations of the modern style alltogether.