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

rhythmic-morning-87313

05/05/2022, 3:56 PM
Q28: I configured the unified requirements to define explicit type-stub packages like this. But running
./pants check ::
still says there is no type stubs found for dateutil, yaml, etc. Am I missing something? Also, should I include type-stub packages in both
requirements.txt
and the
python_requirements()
target?
h

hundreds-father-404

05/05/2022, 3:57 PM
maybe related to https://github.com/pantsbuild/pants/issues/14513. I've been meaning to investigate that one You should only need to put the type stubs in
requirements.txt
- which will cause
python_requirements
to generate a
python_requirement
target per stub
🤔 1
please lmk if that issue is the problem. I'm trying to fix some bugs like that this week, and might try prioritizing it
r

rhythmic-morning-87313

05/05/2022, 4:57 PM
i think this is the issue. manually adding
//:reqs#types-python-dateutil
dependency explicitly to a
:lib
target removes the missing type stub error when running
./pants check
against the modified target.
h

hundreds-father-404

05/05/2022, 4:57 PM
okay, thank you! I will try to get to this ticket this week. (Lmk if you'd be interested fixing, I can write up some thoughts 🙂 )
🙌 1
r

rhythmic-morning-87313

05/05/2022, 4:59 PM
i'm afraid i may not be available to work on by myself, but i can test if you have the fix as i have a full source-based pants setup
👍 1
7 Views