pt., 8 paź 2021 o 04:48 S Pradeep Kumar <[email protected]> napisał(a): > ... > Note that we considered and rejected using a full def-signature syntax like > ```` > (record: PurchaseRecord, permissions: List[AuthPermission], /) -> > FormattedItem > ```` > because it would be more verbose for common cases and could lead to subtle > bugs; more details in [3].
Did you considered full def-signature with optional argument names, so the common cases would look like ```` (:PurchaseRecord, :List[AuthPermission]) -> FormattedItem ```` Bare name signatures like '(record) -> FormattedItem' could be disallowed to prevent bugs. _______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/G2NONQGVY3V6OHHZ326M7MCQJYMNJFWH/ Code of Conduct: http://python.org/psf/codeofconduct/
