Knob to configure colon on type hinting for parameters
- Dominant language
- Python
- Stars
- 14k
- Forks
- 904
- PR merge metrics
- No merged PRs in 30d
Description
I might be the only one on the planet, but if possible I would love for yapf to cater to even more flexible interpretations of what code should look like. Take the following as an example:
```python
- def is_registered(self, fileno :int) -> bool:
+ def is_registered(self, fileno: int) -> bool:
```
I personally consider this wrong as it reminds me too much of the dictionary syntax.
Which is why I prefer to have the type hint `fileno :int` instead of `fileno: int`. Personal preference and I don't want to start a fuzz, but simply ask if it's possible to allow users like me to choose this style guide instead.
I'm extremely new to yapf, but I like that it's more relaxed than black and is configurable in ways that speak to me.
But I couldn't find this type of configuration and therefor ask for it to be implemented if possible.
Contributor guide
Assessment
This issue has not been assessed yet.