-
-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DeprecationWarning
regarding the use of LegacyVersion
#612
Comments
We'd need a simple test case in order to replicate. Looking at where the warning comes from, it might be due to how we specify the dependencies of |
The simplest test case is in fact a stub unit test as shown below:
with the stub test saved as
Running
I think the warning is emitted during the stage where Pants is doing its resolution, because it looks like the warning appears before Pytest is even invoked. |
You could probably run |
Hmm, there was actually a typo in
to
in |
Based on this issue in |
Describe the bug
The below
DeprecationWarning
appears since installingpandas-stubs
:To Reproduce
pandas-stubs
viapip
by runningpip install pandas-stubs
from within the virtual environment.Please complete the following information:
3.8.10
pyright 1.1.295
pandas-stubs
pandas-stubs 1.5.3.230321
Additional context
I never saw this warning prior to installing
pandas-stubs
, but this warning shows up constantly now. It's difficult to trace the contents of the warning message directly topandas-stubs
though.The text was updated successfully, but these errors were encountered: