Coder Social home page Coder Social logo

Comments (8)

JelleZijlstra avatar JelleZijlstra commented on July 28, 2024

You can use @typing_extensions.override in a pyi file, provided your type checker is updated. What else are you asking for?

from typing_extensions.

IvanKirpichnikov avatar IvanKirpichnikov commented on July 28, 2024

Pycharm swears that there is no link to override in typing_extensions.pyi

complete error 'Cannot find reference 'override' in 'typing_extensions.pyi''
System: Windows 11
python: python 3.11.8:db85d51

from typing_extensions.

JelleZijlstra avatar JelleZijlstra commented on July 28, 2024

That sounds like a problem with PyCharm. They likely have bundled a stub file for typing-extensions that isn't updated.

from typing_extensions.

srittau avatar srittau commented on July 28, 2024

This is probably best reported to the PyCharm tracker at https://youtrack.jetbrains.com/issues.

FWIW, it works for me with PyCharm Pro 2024.1.1 and typing_extensions 4.11.0.

from typing_extensions.

IvanKirpichnikov avatar IvanKirpichnikov commented on July 28, 2024

You can use @typing_extensions.override in a pyi file, provided your type checker is updated. What else are you asking for?

in this case, PyCharm writes the following
Cannot find reference 'override' in 'typing_extensions.pyi'

Forgot to check the PyCharm version.
PyCharm Community 2023.2.5

from typing_extensions.

IvanKirpichnikov avatar IvanKirpichnikov commented on July 28, 2024

Okay, I understand you. Thank you for your help

from typing_extensions.

srittau avatar srittau commented on July 28, 2024

@IvanKirpichnikov Also, please make sure that typing_extensions is actually installed into your current environment (e.g. using pip install typing_extensions).

from typing_extensions.

IvanKirpichnikov avatar IvanKirpichnikov commented on July 28, 2024

@IvanKirpichnikov Also, please make sure that typing_extensions is actually installed into your current environment (e.g. using pip install typing_extensions).

I checked for it and moreover tried to update it. Alas, it did not help

from typing_extensions.

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.