Lessen dmypy suggest path limitations for Windows machines by CoolCat467 · Pull Request #19337 · python/mypy

@CoolCat467

@CoolCat467 changed the title Lessen dmypy suggest path limitations for Windows machine Lessen dmypy suggest path limitations for Windows machines

Jun 25, 2025

sterliakov

@CoolCat467 @sterliakov

Co-authored-by: Stanislav Terliakov <50529348+sterliakov@users.noreply.github.com>

hauntsaninja

esarp pushed a commit that referenced this pull request

Jul 10, 2025
In this pull request, we allow dmypy suggest absolute paths to contain
the drive letter colon for Windows machines. Fixes #19335.

This is done by changing how `find_node` works slightly, allowing there
to be at most two colon (`:`) characters in the passed key for windows
machines instead of just one like on all other platforms, and then using
`rsplit` and a split limit of 1 instead of just `split` like prior.

---------

Co-authored-by: Stanislav Terliakov <50529348+sterliakov@users.noreply.github.com>