Commit Graph
9 Commits
Author SHA1 Message Date
Ilya Konstantinov 4c8d577d68 flask: allow view func body to be dict (#3149) 2019-07-31 02:04:36 +02:00
Ilya Konstantinov 93150dc0fa LoggerAdapter.log argument lvl -> level (#2722) 2019-01-04 09:03:56 +01:00
Ilya Konstantinov 1564770456 Add pynamodb.models.Model.get_attribute and narrow down the type (#2689) 2018-12-17 17:06:42 +01:00
Ilya Konstantinov fe04d3aa2d Accept str in cast (#2408) 2018-08-21 07:53:35 -07:00
Ilya Konstantinov 978c0913c8 Add stub for first (#2141)
Reviewed by author in https://github.com/hynek/first/pull/22
2018-06-11 19:50:56 -07:00
Ilya Konstantinov 129df4957c pynamodb: fix rate_limited_scan defaults (#2167)
The `rate_limited_scan` method has defaults for all arguments, including `attributes_to_get` which was omitted.
2018-06-08 23:02:38 -07:00
Ilya Konstantinov 128a49a32d Fix LoggerAdapter.process first argument (#2153)
Standard implementation is:
```
def process(self, msg, kwargs):
    kwargs["extra"] = self.extra
    return msg, kwargs
```
so the signature is clearly `(Text, ...) -> (Text, ...)` (or `(str, ...) -> (str, ...)`, but following the other stubs here, I gather it's `Text`).
2018-05-21 08:27:16 -07:00
Ilya Konstantinov ab9733b448 Support for response hooks in requests (#1674) 2017-10-26 10:56:05 -04:00
Ilya Konstantinov 9a10c74345 requests.Session.headers and proxies not optional (#1676)
```
>>> import requests
>>> s = requests.session()
>>> s.headers
{'User-Agent': 'python-requests/2.18.4', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'}
>>> s.proxies
{}
```
2017-10-25 16:50:59 -04:00