Comments (8)
I'll work on a new release this weekend that should address this issue
from pandas-stubs.
I had initially done poetry lock --no-update
, which did update the versions in the file. However, deleting poetry.lock
and going through the process again had the same effect.
Good news though - I noticed which python
came from ~/.cache
when I was in the poetry shell. I removed the directory and started over. The tests pass locally now. Thanks for the tip!
from pandas-stubs.
hmm I see, I think the package version should be based on api version and the date like "1.4.220626" or "1.4.0.220626", so the minor version would not be affected.
from pandas-stubs.
hmm I see, I think the package version should be based on api version and the date like "1.4.220626" or "1.4.0.220626", so the minor version would not be affected.
from pandas-stubs.
Out of curiosity I made the changes above. I attempted to run the tests locally (following this), but pyright
fails. All of the workflows succeed in GitHub actions though. What am I missing, and is f9f0b0f sufficient?
from pandas-stubs.
Try to delete .cache folders
from pandas-stubs.
None exist. I had tried removing __pycache__
folders though.
┌──(aholmes)-[~/repos/pandas-stubs] (update-pandas-to-1.4.3)
└─$ mv .gitignore ../
(pandas-stubs-95Q6RBOr-py3.9)
┌──(aholmes)-[~/repos/pandas-stubs] (update-pandas-to-1.4.3)
└─$ git status
On branch update-pandas-to-1.4.3
Your branch is up to date with 'aholmes/update-pandas-to-1.4.3'.
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
deleted: .gitignore
Untracked files:
(use "git add <file>..." to include in what will be committed)
poetry.lock
scripts/__pycache__/
scripts/test/__pycache__/
no changes added to commit (use "git add" and/or "git commit -a")
(pandas-stubs-95Q6RBOr-py3.9)
┌──(aholmes)-[~/repos/pandas-stubs] (update-pandas-to-1.4.3)
└─$ rm -rf poetry.lock scripts/__pycache__/ scripts/test/__pycache__/
(pandas-stubs-95Q6RBOr-py3.9)
┌──(aholmes)-[~/repos/pandas-stubs] (update-pandas-to-1.4.3)
└─$ poe test_all
Poe => test_all
===========================================
Beginning: 'Run Mypy Against Source Code'
===========================================
Success: no issues found in 176 source files
===========================================
End: 'Run Mypy Against Source Code', runtime: 8.548 seconds.
===========================================
===========================================
Beginning: 'Run Pyright Against Source Code'
===========================================
No configuration file found.
pyproject.toml file found at /home/aholmes/repos/pandas-stubs.
Loading pyproject.toml file at /home/aholmes/repos/pandas-stubs/pyproject.toml
Assuming Python version 3.9
Assuming Python platform Linux
Auto-excluding **/node_modules
Auto-excluding **/__pycache__
Auto-excluding **/.*
Searching for source files
Found 176 source files
pyright 1.1.256
/home/aholmes/repos/pandas-stubs/pandas-stubs/__init__.pyi
/home/aholmes/repos/pandas-stubs/pandas-stubs/__init__.pyi:16:5 - error: "CategoricalIndex" is unknown import symbol (reportGeneralTypeIssues)
...
from pandas-stubs.
When you changed the pandas and project version did you update poetry.lock file with poetry update
?
from pandas-stubs.
Related Issues (20)
- pd.to_datetime(list[datetime.date]) is wrong input type (mypy), but pandas returns output. HOT 2
- Pandas concat incorrectly marks subsequent code as unreachable HOT 1
- pandas.DataFrame.from_dict : issue with dtype and columns arguments types HOT 2
- Problem accessing `.loc` with tuple for MultiIndex Series HOT 3
- concat still reports unreachable for Iterable[None|Any] corner case HOT 11
- register_dataframe_accessor causes "Untyped class decorator obscures type of class; ignoring decorator" HOT 2
- Return type of pipe not consistent with types at run time HOT 7
- README.md still suggests to join a gitter room HOT 1
- VSCode questions HOT 6
- Use the new TypeIs feature to update the notna/notnull/isna/isnull type guards
- Passing a callable to DataFrame.mask's 'cond' argument results in arg-type error (mypy) HOT 2
- No overload variant of "apply" of "Styler" matches argument types "Callable[[Series[int], str], list[str]]", "str", "int" HOT 2
- Stack method - Unexpected keyword argument HOT 2
- Allow 'integer' in select_dtypes include argument HOT 1
- Unexpected, Misleading mypy Failures After pandas-stubs Update: DataFrame.from_dict() Behavior HOT 5
- Should from_dict be annotated to allow sequence data values? HOT 8
- Index.rename() should return Self HOT 3
- Annotation of `get_loc` does no longer fit to `iloc` resulting in many false positive type errors. HOT 2
- Can't pass `dict` to `DataFrame.apply` HOT 1
- `Series.map()` needs type for `arg` and result HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandas-stubs.