Buffer support for re by JelleZijlstra · Pull Request #7679 · python/typeshed
Diff from mypy_primer, showing the effect of this PR on open source code:
paroxython (https://github.com/laowantong/paroxython) + paroxython/map_taxonomy.py:223: error: Argument 1 to "append" of "list" has incompatible type "str"; expected "TaxonName" core (https://github.com/home-assistant/core) + homeassistant/components/huawei_lte/device_tracker.py:170: error: On Python 3 formatting "b'abc'" with "{}" produces "b'abc'", not "abc"; use "{!r}" if this is desired behavior [str-bytes-safe]
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! The homeassistant one looks like a false positive to me, probably a mypy bug, although we should be able to work around it if we wanted by using self types for Match.group
JelleZijlstra added a commit to JelleZijlstra/typeshed that referenced this pull request
JelleZijlstra added a commit that referenced this pull request
Similar to #7679 Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Akuli <akuviljanen17@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters