Giter VIP home page Giter VIP logo

Comments (8)

Dr-Irv avatar Dr-Irv commented on July 21, 2024 2

I'll work on a new release this weekend that should address this issue

from pandas-stubs.

aholmes avatar aholmes commented on July 21, 2024 1

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.

breno-jesus-fernandes avatar breno-jesus-fernandes commented on July 21, 2024

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.

breno-jesus-fernandes avatar breno-jesus-fernandes commented on July 21, 2024

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.

@Dr-Irv

from pandas-stubs.

aholmes avatar aholmes commented on July 21, 2024

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.

breno-jesus-fernandes avatar breno-jesus-fernandes commented on July 21, 2024

Try to delete .cache folders

from pandas-stubs.

aholmes avatar aholmes commented on July 21, 2024

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.

breno-jesus-fernandes avatar breno-jesus-fernandes commented on July 21, 2024

When you changed the pandas and project version did you update poetry.lock file with poetry update ?

from pandas-stubs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.