https://pantsbuild.org/ logo
#general
Title
# general
h

happy-kitchen-89482

05/10/2022, 5:23 AM
I'm noticing that setting
[python-infer].unowned_dependency_behavior = "error"
has unfortunate consequences in cases such as
Copy code
if TYPE_CHECKING:
    import something
1
Possibly that should be inferred as a weak dep
👍 1
c

curved-television-6568

05/10/2022, 5:37 AM
I guess it's workaroundable by using
# pants: ignore-dep
.
h

happy-kitchen-89482

05/10/2022, 5:56 AM
Yeah, but better not to require that
c

curved-television-6568

05/10/2022, 6:33 AM
Indeed