##// END OF EJS Templates
typing: use the `Status` protocol wherever `scmutil.status` was being used...
typing: use the `Status` protocol wherever `scmutil.status` was being used This likely isn't everything, but these were all of the places the latter was referenced in the generated *.pyi files, plus a few cases that were inferred as `Any`, but found in a module that was being changed anyway. We should figure out some sort of consistency as far as naming these Protocol classes (stdlib ones tend to be CamelCase and imported directly). The current convention of `from xxx.interfaces import foo as ifoo` is a little clever, but a little annoying to type out. Also, this package is likely to grow beyond just Protocol classes, where treating the types as interfaces is wrong (e.g. a theoretical `NodeT` type to represent the binary form of a node, instead of treating that and the incompatible hex form as both bytes). But that's a project for another day.
Matt Harbison -
r53349:9d79ffee default
Show More
Name Size Modified Last Commit Author
/ mercurial / interfaces
__init__.py Loading ...
dirstate.py Loading ...
modules.py Loading ...
repository.py Loading ...
status.py Loading ...
util.py Loading ...