Q28: I configured the unified requirements to defi...
# general
r
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
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
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
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
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