https://pantsbuild.org/ logo
f

fast-nail-55400

02/09/2022, 11:08 PM
Got this error from mypy:
incompatible type "Tuple[ClasspathEntry, ...]"; expected "Collection[ClasspathEntry]"  [arg-type]
Shouldn’t a tuple be a collection?
h

hundreds-father-404

02/09/2022, 11:08 PM
is it
Collection
from
pants.engine.fs
or from
typing
?
f

fast-nail-55400

02/09/2022, 11:10 PM
pants.engine.collection
thought it was from
typing
until you asked
h

hundreds-father-404

02/09/2022, 11:10 PM
yeah that's confusing
f

fast-nail-55400

02/09/2022, 11:10 PM
any way, all of the callers are using
tuple
so going to make the type ascription be a
tuple
👍 1
h

hundreds-father-404

02/09/2022, 11:11 PM
Cool.
Collection
is literally just a newtype of tuple