diff tests/phabricator/accept-7913.json @ 51809:45270e286bdc default tip

typing: hide the interface version of `dirstate` during type checking As noted in the previous commit, the `dirstate` type is still inferred as `Any` by pytype, including where it is used as a base class for the largefiles dirstate. That effectively disables most type checking. The problems fixed two commits ago were flagged by this change. I'm not at all clear what the benefit of the original type is, but that was what was used at runtime, so I don't want to change the largefiles base class to the raw class. Having both a lowercase and camelcase name for the same thing isn't great, but given that this trivially finds problems without worrying about which symbol clients may be using, and the non-raw type is useless to pytype anyway, I'm not going to worry about it.
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 16 Aug 2024 18:11:52 -0400
parents a5e3f38407cb
children
line wrap: on
line diff