Python’s “Type Hints” are a bit of a disappointment to me
Python’s “Type Hints” are a bit of a disappointment to me In Python 3.5, “type hints” were introduced. I was really excited when I first heard this. You can now annotate functions: def greeting(name: str) -> str: return 'Hello ' + name And variables: foo: str = greeting('penguin') That looks very…
もっと詳しく