django-rest-framework/rest_framework/schemas
Jon Dufresne 0552810410 Use dict and set literals instead of calls to dict() and set() (#5559)
Set literals are available on all supported Python versions. They are
idiomatic and always faster:

$ python3 -m timeit '{}'
10000000 loops, best of 3: 0.0357 usec per loop
$ python3 -m timeit 'dict()'
10000000 loops, best of 3: 0.104 usec per loop

$ python3 -m timeit '{1, 2, 3}'
10000000 loops, best of 3: 0.0754 usec per loop
$ python3 -m timeit 'set([1, 2, 3])'
1000000 loops, best of 3: 0.228 usec per loop
2017-11-06 10:03:01 +01:00
..
__init__.py allow custom authentication and permission classes for docs view 2017-09-25 16:17:25 +02:00
generators.py Use dict and set literals instead of calls to dict() and set() (#5559) 2017-11-06 10:03:01 +01:00
inspectors.py Use dict and set literals instead of calls to dict() and set() (#5559) 2017-11-06 10:03:01 +01:00
utils.py Have is_list_view recognise RetrieveModel… views (#5480) 2017-10-05 20:41:14 +02:00
views.py Allow schema = None. Deprecate exclude_from_schema (#5422) 2017-09-20 11:29:47 +02:00