Code Monkey home page Code Monkey logo

Comments (8)

hynek avatar hynek commented on July 1, 2024 3

They will after the next release. I've pompously shipped type hints but forgot to add a py.typed marked. Therefore, currently MyPy won't find the stubs. πŸ€¦πŸ»β€β™‚οΈ

I will release later this week. I'm just waiting if more problems pop up.

from argon2-cffi.

hynek avatar hynek commented on July 1, 2024 2

3.5+ but also 2.7. :| I've already dropped 2.7 support on some of my projects, but I'm somewhat uneasy to do it also for such a security-sensitive one. There's prob quite a few of Django installations depending on it…

I guess we could add it using pyi files but man that's tiring. :(

from argon2-cffi.

pszpetkowski avatar pszpetkowski commented on July 1, 2024 1

Stubs are working fine for me atm (as mentioned in previous post, I already have them defined in a private project) -- I just decided to throw some ideas in case if you'd be looking for a way to introduce typing annotations here in upstream.

from argon2-cffi.

pszpetkowski avatar pszpetkowski commented on July 1, 2024

@hynek
If you are not willing to drop 2.7 yet there are few possible solutions that come to mind:

  1. 3.5+ only on master and a separate 20.1.x branch for backport security fixes (seems to me like less of a hassle than pyi files which would eventually mean double of the effort)
  2. Fork into something like argon2-cffi-typed and merge with argon2-cffi when ready to abandon 2.7.

I already have some typing stubs defined in a private project e.g. for PasswordHasher and would gladly provide a PR if you would accept it.

from argon2-cffi.

hynek avatar hynek commented on July 1, 2024

I mean we could hold our noses and stubs for now? The APIs are rather simple, so it should be straight-forward?

from argon2-cffi.

rob4226 avatar rob4226 commented on July 1, 2024

Hi @pszpetkowski would you mind sharing those stubs? I'd like to clear the mypy errors from my project. Thanks!

from argon2-cffi.

hynek avatar hynek commented on July 1, 2024

We have dropped 2.7 and 3.5 a while ago, so I'd be happy to accept proper stubs here!

from argon2-cffi.

pszpetkowski avatar pszpetkowski commented on July 1, 2024

Apologies for late reply. Somehow I've missed notification about your comments @rob4226 @hynek.

I assume these stubs are no longer needed since it seems that #112 has fixed this issue?

from argon2-cffi.

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.