Files
typeshed/stdlib/3
Henri Bai 44f7869c80 Fix blake2 binding (#1663)
* Fix blake2 binding

Currently calling `hashlib.blake2b` results in the following type errors:

Cannot instantiate abstract class '_BlakeHash' with abstract attributes 'copy', 'digest', 'hexdigest' and 'update'
Missing positional arguments "data", "key", "salt", "person", "fanout", "depth", "leaf_size", "node_offset", "node_depth", "inner_size", "last_node" in call to "_BlakeHash"

* Additional changes to reflect the hashlib implementation

Modifies the type signatures of:
 * blake2b
 * blake2s
 * sha3_224
 * sha3_256
 * sha3_384
 * sha3_512
 * shake_128
 * shake_256
To reflect the types that are implemented in the standard library.
These should be exposed as `type`s instead of `builtin_function_or_method`s.
e.g.
In [40]: type(hashlib.blake2b)
Out[40]: type

In [41]: type(hashlib.md5)
Out[41]: builtin_function_or_method
2017-11-08 19:39:55 -08:00
..
2017-05-23 09:51:29 -07:00
2017-04-24 15:31:29 -07:00
2016-12-19 23:53:19 -08:00
2017-04-24 15:04:42 -07:00
2017-01-26 12:05:53 -08:00
2016-12-21 01:15:26 -08:00
2017-06-02 12:53:38 -07:00
2017-11-08 19:39:55 -08:00
2017-04-24 15:31:29 -07:00
2017-04-27 08:48:22 -07:00
2017-04-30 14:16:30 -07:00
2016-12-20 00:47:51 -08:00
2016-12-20 00:16:44 -08:00
2017-05-24 14:09:52 -07:00
2017-04-24 14:57:26 -07:00
2016-02-25 09:41:32 +00:00
2016-12-19 22:09:35 -08:00
2017-05-31 12:07:21 -07:00
2017-03-23 08:26:45 -07:00
2017-10-23 15:26:58 -04:00
2017-10-08 21:12:19 -07:00