Yury Selivanov added the comment:

Nathan, consider the following signature:

  def foo(a=0:''): pass

now, sig.parameters['a'].annotation will be '' and .default will be 0, and they 
will fail 'if param.annotation or param.default' check.  That's why we 
encourage checks like 'if param.annotation is not param.empty'.

Closing this issue.

----------
assignee:  -> yselivanov
nosy: +yselivanov
resolution:  -> rejected
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23653>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to