BlogDocs

Two tiny corrections found by mypy 1.13(#1032)

Merged
Comparing
dave42w:my-py2
(
b347d17
) with
main
(
5589ddf
)
-1%
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
146
NEW
0
DROPPED
0
IGNORED
0

Benchmarks

Passed

test_env_population
integration_tests/test_env_populator.py::test_env_population
0%
318.9 µs
317.4 µs
test_allow_cors
integration_tests/test_app.py::test_allow_cors
0%
454.4 µs
453.8 µs
test_add_request_header
integration_tests/test_app.py::test_add_request_header
0%
339.8 µs
339.6 µs
test_add_response_header
integration_tests/test_app.py::test_add_response_header
0%
339.6 µs
339.5 µs
test_lifecycle_handlers
integration_tests/test_app.py::test_lifecycle_handlers
0%
372 µs
371.9 µs
test_custom_openapi_spec
integration_tests/test_openapi.py::test_custom_openapi_spec
0%
466.5 µs
467.3 µs
test_sub_router_web_socket
integration_tests/test_subrouter.py::test_sub_router_web_socket
0%
1.1 ms
1.1 ms
test_web_socket_raw_benchmark
integration_tests/test_web_sockets.py::test_web_socket_raw_benchmark
0%
1.6 ms
1.6 ms
test_basic_get[/sync/dict/const-sync dict const get-sync_const-dict]
integration_tests/test_basic_routes.py::test_basic_get[/sync/dict/const-sync dict const get-sync_const-dict]
0%
4.9 ms
4.9 ms
test_basic_get[/sync/response-sync response get-sync-response]
integration_tests/test_basic_routes.py::test_basic_get[/sync/response-sync response get-sync-response]
0%
4.9 ms
4.9 ms
test_json_handler
integration_tests/test_openapi.py::test_json_handler
0%
6.4 ms
6.4 ms
test_sub_router_head
integration_tests/test_subrouter.py::test_sub_router_head
0%
4.7 ms
4.8 ms
test_basic_get[/sync/dict-sync dict get-sync-dict]
integration_tests/test_basic_routes.py::test_basic_get[/sync/dict-sync dict get-sync-dict]
0%
4.9 ms
4.9 ms
test_basic_get[/sync/response/const-sync response const get-sync_const-response]
integration_tests/test_basic_routes.py::test_basic_get[/sync/response/const-sync response const get-sync_const-response]
0%
4.9 ms
5 ms
test_openapi_request_body
integration_tests/test_openapi.py::test_openapi_request_body
0%
6.4 ms
6.4 ms
test_split_request_params_get_body[split_request_untyped-sync]
integration_tests/test_split_request_params.py::test_split_request_params_get_body[split_request_untyped-sync]
0%
4.9 ms
4.9 ms
test_split_request_params_get_combined[split_request_untyped-sync]
integration_tests/test_split_request_params.py::test_split_request_params_get_combined[split_request_untyped-sync]
0%
5.1 ms
5.1 ms
test_get_sync_view
integration_tests/test_views.py::test_get_sync_view
-1%
4.7 ms
4.8 ms
test_split_request_params_typed_untyped_post_combined[async]
integration_tests/test_split_request_params.py::test_split_request_params_typed_untyped_post_combined[async]
-1%
5.1 ms
5.1 ms
test_binary_output[/sync/octet/response-sync octet response]
integration_tests/test_binary_output.py::test_binary_output[/sync/octet/response-sync octet response]
-1%
4.9 ms
5 ms
test_post_sync_view
integration_tests/test_views.py::test_post_sync_view
-1%
4.8 ms
4.8 ms
test_post_sync_decorator_view
integration_tests/test_views.py::test_post_sync_decorator_view
-1%
4.9 ms
4.9 ms
test_exception_handling[/async/post/no_dec-post]
integration_tests/test_add_route_without_decorator.py::test_exception_handling[/async/post/no_dec-post]
-1%
4.8 ms
4.9 ms
test_put[sync]
integration_tests/test_put_requests.py::test_put[sync]
-1%
4.9 ms
4.9 ms
test_split_request_params_get_method[split_request_untyped-async]
integration_tests/test_split_request_params.py::test_split_request_params_get_method[split_request_untyped-async]
-1%
4.9 ms
4.9 ms
test_exception_handling[/async/get/no_dec-get]
integration_tests/test_add_route_without_decorator.py::test_exception_handling[/async/get/no_dec-get]
-1%
4.8 ms
4.8 ms
test_split_request_params_get_headers[split_request_untyped-sync]
integration_tests/test_split_request_params.py::test_split_request_params_get_headers[split_request_untyped-sync]
-1%
4.9 ms
4.9 ms
test_basic_get[/async/response/const-async response const get-async_const-response]
integration_tests/test_basic_routes.py::test_basic_get[/async/response/const-async response const get-async_const-response]
-1%
4.9 ms
5 ms
test_invalid_authentication_token[sync]
integration_tests/test_authentication.py::test_invalid_authentication_token[sync]
-1%
4.7 ms
4.8 ms
test_exception_handling[/sync/post/no_dec-post]
integration_tests/test_add_route_without_decorator.py::test_exception_handling[/sync/post/no_dec-post]
-1%
4.8 ms
4.9 ms
test_global_middleware
integration_tests/test_middlewares.py::test_global_middleware
-1%
4.8 ms
4.8 ms
test_sub_router[post]
integration_tests/test_subrouter.py::test_sub_router[post]
-1%
4.8 ms
4.8 ms
test_serve_html[async]
integration_tests/test_get_requests.py::test_serve_html[async]
-1%
4.8 ms
4.8 ms
test_json_get[/sync/json-expected_json0]
integration_tests/test_basic_routes.py::test_json_get[/sync/json-expected_json0]
-1%
4.8 ms
4.8 ms
test_invalid_authentication_token[async]
integration_tests/test_authentication.py::test_invalid_authentication_token[async]
-1%
4.7 ms
4.8 ms
test_json_get[/async/json-expected_json1]
integration_tests/test_basic_routes.py::test_json_get[/async/json-expected_json1]
-1%
4.8 ms
4.8 ms
test_delete[sync]
integration_tests/test_delete_requests.py::test_delete[sync]
-1%
4.9 ms
4.9 ms
test_basic_get[/sync/str/const-sync str const get-None-None]
integration_tests/test_basic_routes.py::test_basic_get[/sync/str/const-sync str const get-None-None]
-1%
4.8 ms
4.8 ms
test_split_request_params_get_combined[split_request_typed-async]
integration_tests/test_split_request_params.py::test_split_request_params_get_combined[split_request_typed-async]
-1%
5.1 ms
5.1 ms
test_openapi_response_body
integration_tests/test_openapi.py::test_openapi_response_body
-1%
6.4 ms
6.4 ms
test_cookies[fakesession-fake-cookie-session-value]
integration_tests/test_get_requests.py::test_cookies[fakesession-fake-cookie-session-value]
-1%
4.7 ms
4.8 ms
test_split_request_params_typed_untyped_post_combined[sync]
integration_tests/test_split_request_params.py::test_split_request_params_typed_untyped_post_combined[sync]
-1%
5.1 ms
5.1 ms
test_post_with_param[sync]
integration_tests/test_post_requests.py::test_post_with_param[sync]
-1%
4.8 ms
4.8 ms
test_patch_with_param[async]
integration_tests/test_patch_requests.py::test_patch_with_param[async]
-1%
4.8 ms
4.8 ms
test_exception_handling[/sync/put/no_dec-put]
integration_tests/test_add_route_without_decorator.py::test_exception_handling[/sync/put/no_dec-put]
-1%
4.8 ms
4.9 ms
test_http_request_info_get[/async/http/param-expected_json1]
integration_tests/test_basic_routes.py::test_http_request_info_get[/async/http/param-expected_json1]
-1%
4.9 ms
4.9 ms
test_exception_handling[/sync/get/no_dec-get]
integration_tests/test_add_route_without_decorator.py::test_exception_handling[/sync/get/no_dec-get]
-1%
4.9 ms
4.9 ms
test_split_request_params_get_headers[split_request_untyped-async]
integration_tests/test_split_request_params.py::test_split_request_params_get_headers[split_request_untyped-async]
-1%
4.9 ms
4.9 ms
test_get_async_view
integration_tests/test_views.py::test_get_async_view
-1%
4.7 ms
4.8 ms
test_binary_output[/async/octet/response-async octet response]
integration_tests/test_binary_output.py::test_binary_output[/async/octet/response-async octet response]
-1%
4.9 ms
5 ms
test_split_request_params_get_headers[split_request_typed-async]
integration_tests/test_split_request_params.py::test_split_request_params_get_headers[split_request_typed-async]
-1%
4.8 ms
4.9 ms
test_post_async_view
integration_tests/test_views.py::test_post_async_view
-1%
4.8 ms
4.8 ms
test_basic_get[/async/response-async response get-async-response]
integration_tests/test_basic_routes.py::test_basic_get[/async/response-async response get-async-response]
-1%
4.9 ms
4.9 ms
test_split_request_params_get_body[split_request_typed-sync]
integration_tests/test_split_request_params.py::test_split_request_params_get_body[split_request_typed-sync]
-1%
4.9 ms
4.9 ms
test_404_not_found
integration_tests/test_status_code.py::test_404_not_found
-1%
4.8 ms
4.8 ms
test_delete[async]
integration_tests/test_delete_requests.py::test_delete[async]
-1%
4.9 ms
4.9 ms
test_sync_500_internal_server_error[sync]
integration_tests/test_status_code.py::test_sync_500_internal_server_error[sync]
-1%
4.7 ms
4.7 ms
test_split_request_params_get_query_params[split_request_typed-async]
integration_tests/test_split_request_params.py::test_split_request_params_get_query_params[split_request_typed-async]
-1%
13.8 ms
13.8 ms
test_template[async]
integration_tests/test_get_requests.py::test_template[async]
-1%
4.8 ms
4.8 ms
test_invalid_authentication_header[sync]
integration_tests/test_authentication.py::test_invalid_authentication_header[sync]
-1%
4.7 ms
4.8 ms
test_split_request_params_get_path_params[split_request_untyped-sync]
integration_tests/test_split_request_params.py::test_split_request_params_get_path_params[split_request_untyped-sync]
-1%
4.9 ms
4.9 ms
test_basic_get[/async/dict/const-async dict const get-async_const-dict]
integration_tests/test_basic_routes.py::test_basic_get[/async/dict/const-async dict const get-async_const-dict]
-1%
4.9 ms
4.9 ms
test_split_request_params_get_headers[split_request_typed-sync]
integration_tests/test_split_request_params.py::test_split_request_params_get_headers[split_request_typed-sync]
-1%
4.8 ms
4.9 ms
test_split_request_params_get_combined[split_request_untyped-async]
integration_tests/test_split_request_params.py::test_split_request_params_get_combined[split_request_untyped-async]
-1%
5.1 ms
5.1 ms
test_404_status_code
integration_tests/test_status_code.py::test_404_status_code
-1%
4.7 ms
4.7 ms
test_json_get[/sync/json/const-expected_json2]
integration_tests/test_basic_routes.py::test_json_get[/sync/json/const-expected_json2]
-1%
4.8 ms
4.9 ms
test_get_sync_decorator_view
integration_tests/test_views.py::test_get_sync_decorator_view
-1%
4.8 ms
4.8 ms
test_valid_authentication[sync]
integration_tests/test_authentication.py::test_valid_authentication[sync]
-1%
4.8 ms
4.8 ms
test_get_async_decorator_view
integration_tests/test_views.py::test_get_async_decorator_view
-1%
4.8 ms
4.8 ms
test_sub_router[get]
integration_tests/test_subrouter.py::test_sub_router[get]
-1%
4.8 ms
4.8 ms
test_split_request_params_get_query_params[split_request_typed-sync]
integration_tests/test_split_request_params.py::test_split_request_params_get_query_params[split_request_typed-sync]
-1%
13.8 ms
13.8 ms
test_split_request_params_get_method[split_request_untyped-sync]
integration_tests/test_split_request_params.py::test_split_request_params_get_method[split_request_untyped-sync]
-1%
4.8 ms
4.9 ms
test_basic_get[/sync/str-sync str get-None-None]
integration_tests/test_basic_routes.py::test_basic_get[/sync/str-sync str get-None-None]
-1%
4.8 ms
4.8 ms
test_202_status_code
integration_tests/test_status_code.py::test_202_status_code
-1%
4.7 ms
4.7 ms
test_put_with_param[sync]
integration_tests/test_put_requests.py::test_put_with_param[sync]
-1%
4.8 ms
4.8 ms
test_split_request_params_get_method[split_request_typed-async]
integration_tests/test_split_request_params.py::test_split_request_params_get_method[split_request_typed-async]
-1%
4.8 ms
4.9 ms
test_put_with_param[async]
integration_tests/test_put_requests.py::test_put_with_param[async]
-1%
4.8 ms
4.8 ms
test_exception_handling[/async/exception/post-post]
integration_tests/test_exception_handling.py::test_exception_handling[/async/exception/post-post]
-1%
4.9 ms
4.9 ms
test_split_request_params_get_path_params[split_request_typed-sync]
integration_tests/test_split_request_params.py::test_split_request_params_get_path_params[split_request_typed-sync]
-1%
4.9 ms
4.9 ms
test_openapi_query_params
integration_tests/test_openapi.py::test_openapi_query_params
-1%
6.4 ms
6.4 ms
test_invalid_authentication_header[async]
integration_tests/test_authentication.py::test_invalid_authentication_header[async]
-1%
4.7 ms
4.8 ms
test_template[sync]
integration_tests/test_get_requests.py::test_template[sync]
-1%
4.8 ms
4.8 ms
test_binary_output[/sync/octet-sync octet]
integration_tests/test_binary_output.py::test_binary_output[/sync/octet-sync octet]
-1%
4.9 ms
4.9 ms
test_patch[async]
integration_tests/test_patch_requests.py::test_patch[async]
-1%
4.9 ms
4.9 ms
test_patch[sync]
integration_tests/test_patch_requests.py::test_patch[sync]
-1%
4.9 ms
4.9 ms
test_sub_router[put]
integration_tests/test_subrouter.py::test_sub_router[put]
-1%
4.8 ms
4.8 ms
test_sub_router[options]
integration_tests/test_subrouter.py::test_sub_router[options]
-1%
4.8 ms
4.8 ms
test_split_request_params_get_combined_failure[sync]
integration_tests/test_split_request_params.py::test_split_request_params_get_combined_failure[sync]
-1%
5.1 ms
5.1 ms
test_split_request_params_get_combined_failure[async]
integration_tests/test_split_request_params.py::test_split_request_params_get_combined_failure[async]
-1%
5.1 ms
5.1 ms
test_file_download[sync]
integration_tests/test_file_download.py::test_file_download[sync]
-1%
4.8 ms
4.9 ms
test_split_request_params_get_body[split_request_untyped-async]
integration_tests/test_split_request_params.py::test_split_request_params_get_body[split_request_untyped-async]
-1%
4.9 ms
5 ms
test_split_request_params_get_combined[split_request_typed-sync]
integration_tests/test_split_request_params.py::test_split_request_params_get_combined[split_request_typed-sync]
-1%
5.1 ms
5.1 ms
test_exception_handling[/async/put/no_dec-put]
integration_tests/test_add_route_without_decorator.py::test_exception_handling[/async/put/no_dec-put]
-1%
4.8 ms
4.9 ms
test_basic_get[/async/str-async str get-None-None]
integration_tests/test_basic_routes.py::test_basic_get[/async/str-async str get-None-None]
-1%
4.8 ms
4.8 ms
test_param[sync]
integration_tests/test_get_requests.py::test_param[sync]
-1%
9 ms
9.1 ms
test_binary_output[/async/octet-async octet]
integration_tests/test_binary_output.py::test_binary_output[/async/octet-async octet]
-1%
4.9 ms
4.9 ms
test_invalid_authentication_no_token[async]
integration_tests/test_authentication.py::test_invalid_authentication_no_token[async]
-1%
4.7 ms
4.7 ms
test_split_request_params_get_method[split_request_typed-sync]
integration_tests/test_split_request_params.py::test_split_request_params_get_method[split_request_typed-sync]
-1%
4.8 ms
4.9 ms
test_response_in_before_middleware
integration_tests/test_middlewares.py::test_response_in_before_middleware
-1%
4.7 ms
4.7 ms
test_delete_with_param[sync]
integration_tests/test_delete_requests.py::test_delete_with_param[sync]
-1%
4.8 ms
4.9 ms
test_post_async_decorator_view
integration_tests/test_views.py::test_post_async_decorator_view
-1%
4.9 ms
4.9 ms
test_exception_handling[/sync/exception/put-put]
integration_tests/test_exception_handling.py::test_exception_handling[/sync/exception/put-put]
-1%
4.9 ms
4.9 ms
test_dev_index_request
integration_tests/test_base_url.py::test_dev_index_request
-1%
4.7 ms
4.8 ms
test_queries[async]
integration_tests/test_get_requests.py::test_queries[async]
-1%
9.1 ms
9.2 ms
test_form_data[sync]
integration_tests/test_multipart_data.py::test_form_data[sync]
-1%
5 ms
5 ms
test_split_request_params_get_body[split_request_typed-async]
integration_tests/test_split_request_params.py::test_split_request_params_get_body[split_request_typed-async]
-1%
4.9 ms
4.9 ms
test_sub_router[patch]
integration_tests/test_subrouter.py::test_sub_router[patch]
-1%
4.8 ms
4.8 ms
test_middlewares[async]
integration_tests/test_middlewares.py::test_middlewares[async]
-1%
4.8 ms
4.8 ms
test_trailing_slash
integration_tests/test_get_requests.py::test_trailing_slash
-1%
8.9 ms
8.9 ms
test_split_request_params_get_query_params[split_request_untyped-async]
integration_tests/test_split_request_params.py::test_split_request_params_get_query_params[split_request_untyped-async]
-1%
13.8 ms
13.9 ms
test_default_url_index_request
integration_tests/test_base_url.py::test_default_url_index_request
-1%
4.7 ms
4.7 ms
test_post[async]
integration_tests/test_post_requests.py::test_post[async]
-1%
4.9 ms
4.9 ms
test_exception_handling[/async/exception/get-get]
integration_tests/test_exception_handling.py::test_exception_handling[/async/exception/get-get]
-1%
4.9 ms
4.9 ms
test_param[async]
integration_tests/test_get_requests.py::test_param[async]
-1%
9 ms
9.1 ms
test_global_index_request
integration_tests/test_base_url.py::test_global_index_request
-1%
4.7 ms
4.7 ms
test_exception_handling[/sync/exception/get-get]
integration_tests/test_exception_handling.py::test_exception_handling[/sync/exception/get-get]
-1%
4.9 ms
4.9 ms
test_post_with_param[async]
integration_tests/test_post_requests.py::test_post_with_param[async]
-1%
4.8 ms
4.9 ms
test_delete_with_param[async]
integration_tests/test_delete_requests.py::test_delete_with_param[async]
-1%
4.8 ms
4.9 ms
test_sub_router[trace]
integration_tests/test_subrouter.py::test_sub_router[trace]
-1%
4.8 ms
4.8 ms
test_add_subrouter_paths
integration_tests/test_openapi.py::test_add_subrouter_paths
-1%
6.4 ms
6.4 ms
test_add_openapi_path
integration_tests/test_openapi.py::test_add_openapi_path
-1%
6.4 ms
6.4 ms
test_split_request_params_get_path_params[split_request_untyped-async]
integration_tests/test_split_request_params.py::test_split_request_params_get_path_params[split_request_untyped-async]
-1%
4.9 ms
4.9 ms
test_json_get[/async/json/const-expected_json3]
integration_tests/test_basic_routes.py::test_json_get[/async/json/const-expected_json3]
-1%
4.8 ms
4.9 ms
test_split_request_params_get_query_params[split_request_untyped-sync]
integration_tests/test_split_request_params.py::test_split_request_params_get_query_params[split_request_untyped-sync]
-1%
13.8 ms
13.9 ms
test_multipart_file[sync]
integration_tests/test_multipart_data.py::test_multipart_file[sync]
-1%
5 ms
5.1 ms
test_http_request_info_get[/sync/http/param-expected_json0]
integration_tests/test_basic_routes.py::test_http_request_info_get[/sync/http/param-expected_json0]
-1%
4.9 ms
4.9 ms
test_param_suffix[sync]
integration_tests/test_get_requests.py::test_param_suffix[sync]
-1%
9.1 ms
9.1 ms
test_queries[sync]
integration_tests/test_get_requests.py::test_queries[sync]
-1%
9.1 ms
9.2 ms
test_sync_500_internal_server_error[async]
integration_tests/test_status_code.py::test_sync_500_internal_server_error[async]
-1%
4.7 ms
4.7 ms
test_exception_handling[/async/exception/put-put]
integration_tests/test_exception_handling.py::test_exception_handling[/async/exception/put-put]
-1%
4.9 ms
4.9 ms
test_middlewares[sync]
integration_tests/test_middlewares.py::test_middlewares[sync]
-1%
4.8 ms
4.8 ms
test_split_request_params_get_path_params[split_request_typed-async]
integration_tests/test_split_request_params.py::test_split_request_params_get_path_params[split_request_typed-async]
-1%
4.9 ms
4.9 ms
test_invalid_authentication_no_token[sync]
integration_tests/test_authentication.py::test_invalid_authentication_no_token[sync]
-1%
4.7 ms
4.7 ms
test_basic_get[/async/dict-async dict get-async-dict]
integration_tests/test_basic_routes.py::test_basic_get[/async/dict-async dict get-async-dict]
-1%
4.9 ms
4.9 ms
test_param_suffix[async]
integration_tests/test_get_requests.py::test_param_suffix[async]
-1%
9.1 ms
9.2 ms
test_basic_get[/async/str/const-async str const get-None-None]
integration_tests/test_basic_routes.py::test_basic_get[/async/str/const-async str const get-None-None]
-1%
4.8 ms
4.8 ms
test_sub_router[delete]
integration_tests/test_subrouter.py::test_sub_router[delete]
-1%
4.8 ms
4.8 ms
test_serve_html[sync]
integration_tests/test_get_requests.py::test_serve_html[sync]
-1%
4.8 ms
4.8 ms
test_put[async]
integration_tests/test_put_requests.py::test_put[async]
-1%
4.9 ms
4.9 ms
test_file_download[async]
integration_tests/test_file_download.py::test_file_download[async]
-1%
4.8 ms
4.9 ms
test_post[sync]
integration_tests/test_post_requests.py::test_post[sync]
-1%
4.9 ms
4.9 ms
test_exception_handling[/sync/exception/post-post]
integration_tests/test_exception_handling.py::test_exception_handling[/sync/exception/post-post]
-1%
4.9 ms
4.9 ms
test_patch_with_param[sync]
integration_tests/test_patch_requests.py::test_patch_with_param[sync]
-1%
4.8 ms
4.9 ms
test_valid_authentication[async]
integration_tests/test_authentication.py::test_valid_authentication[async]
-1%
4.8 ms
4.8 ms
test_local_index_request
integration_tests/test_base_url.py::test_local_index_request
-1%
4.7 ms
4.7 ms
test_docs_handler
integration_tests/test_openapi.py::test_docs_handler
-1%
4.6 ms
4.7 ms

Commits

Click on a commit to change the comparison range
base
main
5589ddf
-1%
added dict type to self.methods
b347d17
7 days ago
by dave42w
ResourcesHomePricingDocsBlogGitHubChangelog
Copyright © 2024 CodSpeed Technology SAS. All rights reserved.