Mercurial > public > mercurial-scm > hg
comparison mercurial/pathutil.py @ 51287:f4a0806081f2
pytype: drop the now useless assert
As the imported types are now used by type annotation, these ugly assert are
no longer needed.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 20 Dec 2023 22:17:03 +0100 |
parents | 8b2ea2246a5f |
children | 24844407fa0d |
comparison
equal
deleted
inserted
replaced
51286:7bd7fcc711f2 | 51287:f4a0806081f2 |
---|---|
20 util, | 20 util, |
21 ) | 21 ) |
22 | 22 |
23 rustdirs = policy.importrust('dirstate', 'Dirs') | 23 rustdirs = policy.importrust('dirstate', 'Dirs') |
24 parsers = policy.importmod('parsers') | 24 parsers = policy.importmod('parsers') |
25 | |
26 # keeps pyflakes happy | |
27 assert [ | |
28 Any, | |
29 Callable, | |
30 Iterator, | |
31 Optional, | |
32 ] | |
33 | 25 |
34 | 26 |
35 def _lowerclean(s: bytes) -> bytes: | 27 def _lowerclean(s: bytes) -> bytes: |
36 return encoding.hfsignoreclean(s.lower()) | 28 return encoding.hfsignoreclean(s.lower()) |
37 | 29 |