A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2017-December/151337.html below:

[Python-Dev] Is static typing still optional?

[Python-Dev] Is static typing still optional? [Python-Dev] Is static typing still optional?Julien Salort listes at salort.eu
Sun Dec 17 05:11:35 EST 2017
Le 15/12/2017 à 22:14, Paul Moore a écrit :

> Annotations and the annotation syntax are fundamental to the design.
> But that's core Python syntax. But I wouldn't describe types as being
> that significant to the design, it's more "if you supply them we'll
> make use of them".
Naive question from a lurker: does it mean that it works also if one
annotates with something that is not a type, e.g. a comment,

@dataclass
class C:
     a: "This represents the amplitude" = 0.0
     b: "This is an offset" = 0.0
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4