Message339261
There's a similar thing with docstrings though. Some code depend on docstrings (e.g. David Beazley's parser generator). help() of course also depends on it. And yet we have a way to disable it. (Same with asserts, plenty of code depends on them even though we recommend against it.)
So as long as we have a separate mechanism to disable this I'm not worried -- it's up to the person that runs the program to ensure that they don't use functionality that breaks when annotations are suppressed.
(Note that functools.singledispatch has an alternate registration syntax that doesn't require annotations.) |
|
Date |
User |
Action |
Args |
2019-03-31 15:36:55 | gvanrossum | set | recipients:
+ gvanrossum, rhettinger, levkivskyi, cary |
2019-03-31 15:36:55 | gvanrossum | set | messageid: <1554046615.47.0.580956612259.issue36466@roundup.psfhosted.org> |
2019-03-31 15:36:55 | gvanrossum | link | issue36466 messages |
2019-03-31 15:36:55 | gvanrossum | create | |
|