Git Product home page Git Product logo

Comments (4)

Jarmos-san avatar Jarmos-san commented on July 18, 2024 1

Stumbled across this when searching for a solution on Google & figured what went wrong on my end. So, here's what I found was wrong & hope it helps someone in the near future.

I use Neovim & a couple of plugins (more specifically null-ls is the culprit here). You need to configure it to use the mypy executable located under the .venv/bin directory.

So, here's how I fixed it on my end:

-- In your init.lua, modify &  add these code snippet
local packer = require("packer")

packer.startup({
  function(use)
    use({
      "jose-elias-alvarez/null-ls.nvim",
      config = function()
        require("null-ls").setup({
          sources = {
            require("null-ls").builtins.diagnostics.mypy.with({
              prefer_local = ".venv/bin"
            })
          }
        })
      end,
      requires = { "nvim-lua/plenary.nvim" }
    })
  end
})

from typer.

bruceadams avatar bruceadams commented on July 18, 2024

I do not see this problem. (I see a different problem, but never mind that right now).

I think what you ask for here is addressed by issue #53 which was fixed by pull request #58. Can you try picking up a newer release of typer (I have 0.2.1)? (Or maybe a newer mypy, I have 0.770?)

from typer.

nicksspirit avatar nicksspirit commented on July 18, 2024

Okay I will update my version and check things out

from typer.

tiangolo avatar tiangolo commented on July 18, 2024

Thanks for the help here @bruceadams ! 👏 🙇

Thanks for reporting back and closing the issue @OdinTech3 👍

from typer.

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.