mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-16 21:57:55 +00:00
PEP8 indicates (correctly, IMO) that when an annotation is present, the signature should include spaces around the equal sign, i.e. def f(x: int = 1): ... instead of def f(x: int=1): ... (in the latter case the equal appears to bind to the type, not to the argument). pybind11 signatures always includes a type annotation so we can always add the spaces. |
||
---|---|---|
.. | ||
pybind11 |