comparison mercurial/pathutil.py @ 51305:8b2ea2246a5f

pytype: convert type comment for inline variable too Same logic as for the previous changeset, but for "type comment" annotating variables, not function/method. As for the previous changeset, we had to adjust for of the types to actually match what was happening.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 20 Dec 2023 11:23:09 +0100
parents f15cb5111a1e
children f4a0806081f2
comparison
equal deleted inserted replaced
51304:f15cb5111a1e 51305:8b2ea2246a5f
390 390
391 # forward two methods from posixpath that do what we need, but we'd 391 # forward two methods from posixpath that do what we need, but we'd
392 # rather not let our internals know that we're thinking in posix terms 392 # rather not let our internals know that we're thinking in posix terms
393 # - instead we'll let them be oblivious. 393 # - instead we'll let them be oblivious.
394 join = posixpath.join 394 join = posixpath.join
395 dirname = posixpath.dirname # type: Callable[[bytes], bytes] 395 dirname: Callable[[bytes], bytes] = posixpath.dirname