iris-hep / idap-200gbps-atlas

benchmarking throughput with PHYSLITE
6 stars 1 forks source link

Type checking for `Sample` fails #134

Closed gordonwatts closed 2 months ago

gordonwatts commented 2 months ago

This is likely an issue with pylance and pydantic working together. Or perhaps some missing type info for Sample's constructor/__init__ function.

        Sample=[
            sx.Sample(
                Name=f"speed_test_{ds_name}"[0:128],
                RucioDID=ds_name,
                Codegen=query[1],
                Query=query[0],
                NFiles=num_files,
                IgnoreLocalCache=ignore_cache,
            )  # type: ignore
gordonwatts commented 2 months ago

And latest updates to pydantic and pylance - and this is no longer an error!