##// END OF EJS Templates
typing: add type hints to argument checking functions in cmdutil...
typing: add type hints to argument checking functions in cmdutil These might be surprising, since they can take strings instead of bytes. The way `AnyStr` works is that it must be all bytes or all str for any given invocation. The wildcard here will be the `opts` that get passed in- if the type is unknown and defaults to `Any`, there's no enforcement that the dict key type matches the additional args. But a lot of uses should be using `**opts` from the command method, which has a str key. The uses of these methods in this module are now typed because their internals force a specific type, and it can't just be inferred from the caller.
Matt Harbison -
r50987:ce60c8d4 default
Show More
Name Size Modified Last Commit Author
/ rust / rhg / src / commands
cat.rs Loading ...
config.rs Loading ...
debugdata.rs Loading ...
debugignorerhg.rs Loading ...
debugrequirements.rs Loading ...
debugrhgsparse.rs Loading ...
files.rs Loading ...
root.rs Loading ...
status.rs Loading ...