black
black copied to clipboard
Standardize type comments to form `# type: (value)` (#2097)
Description
Fixes: #2097 – is_type_comment() is wrong
Summary of Changes:
- Modified function signatures across several modules to pass the
modeparameter tois_type_commentandmake_comment. - Incorporated parts of PR #4467 by @Pedro-Muller29, particularly the fix in
mode.pyaddressing theunhashable type: modeissue.
Acknowledgment: Credit to @Pedro-Muller29 for the initial work in PR #4467.
Any suggestions are welcome
Checklist - did you ...
- [x] Add an entry in
CHANGES.mdif necessary? - [x] Add / update tests if necessary?
- [ ] Add new / update outdated documentation?
@ranjodhsingh1729 any reasons for closing the PR? It's fairly large so I haven't found time to review it yet.
@tusharsadhwani My Bad. I’m new to contributing and assumed I’d made an error when I saw no activity.