Comments (8)
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.
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.
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.
@hynek
If you are not willing to drop 2.7 yet there are few possible solutions that come to mind:
- 3.5+ only on master and a separate
20.1.x
branch for backport security fixes (seems to me like less of a hassle thanpyi
files which would eventually mean double of the effort) - Fork into something like
argon2-cffi-typed
and merge withargon2-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.
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.
Hi @pszpetkowski would you mind sharing those stubs? I'd like to clear the mypy errors from my project. Thanks!
from argon2-cffi.
We have dropped 2.7 and 3.5 a while ago, so I'd be happy to accept proper stubs here!
from argon2-cffi.
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)
- RFC is no longer a draft (RFC9106); default parameter choice out of date HOT 4
- 21.2.0: pep517 does not build cython modules HOT 6
- 21.1.0: `notebook` test suite is crashing with SIGILL in _cffi_backend.cpython.*so DSO HOT 11
- Inconsistent advice for key derivation HOT 5
- How to avoid timing attacks? HOT 1
- hash function return + / verify issue with sqlite HOT 3
- Question: Can output from argon2.low_level.hash_secret_raw() β bytes directly used to derive aes key? HOT 3
- Associated data cannot be specified in the low_level functions HOT 10
- Support password verification without sending the password from client to server HOT 5
- Make hash verification return True or False HOT 4
- Second salt HOT 1
- hash() got an unexpected keyword argument 'salt' HOT 1
- would a python-3.9 wheel be possible ? HOT 13
- seems missing _ffi.abi3.so when pip installing in docker HOT 7
- Failed Source Build on Apple Silicon HOT 9
- Wheel support for linux aarch64 HOT 4
- Unable to install on Xavier NX HOT 1
- Fail to install by pip on macOS 11.0.1 Big Sur HOT 11
- 20.1.0: sphinx warnings HOT 4
- 20.1.0: pytest warnings 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 argon2-cffi.