globus / globus-cli

A command line interface to Globus
https://docs.globus.org/cli
Apache License 2.0
74 stars 21 forks source link

Tighten mypy to disallow-any-generics #1010

Closed sirosen closed 3 months ago

sirosen commented 3 months ago

This sets disallow-any-generics = true, which forbids the use of implicit Any in a generic when a type parameter is not provided. There is one troublesome module, related to exception hooks, where this rule is still disabled for now.

The pass over the codebase done here was also used as an opportunity for some minor related refinements, e.g. switching cast usages to type-ignore comments.