Content-Length: 304423 | pFad | https://github.com/python/cpython/issues/107155
C6help() output of lambda with manually set __annotations__ is one char off #107155Fetched URL: https://github.com/python/cpython/issues/107155
Alternative Proxies:
Bug report
help()output oflambdawith manually set__annotations__is slightly scrambled.Note
This is a minor glitch for an atypical (perhaps even unsupported) use of annotations.
Hypothesis
Perhaps
help()uses (the same logic as)inspect.signature()and (to reflectlambdasyntax) wants to drop the brackets "(...)", but then has a one-off error for its text slice (picking") -> in"instead of" -> int")Environment
Linked PRs
help(lambda_func)whenlambda_funchas `__annotati… #107401