pyvider
2025-02-10
Codebase-wide modernization of type hints
54 files · 2,276+ · 1,121-
Modern Type Hints
47 files changed
capabilities.pyUpdated capabilities.py (+3/-5 lines).gitignoreUpdated .gitignore (+1/-1 lines)__init__.pyUpdated __init__.py (+0/-0 lines)__init__.pyUpdated __init__.py (+0/-0 lines)bfiles-20250129-173732-grpc-python-example.txtAdded bfiles-20250129-173732-grpc-python-example.txt (+615 lines)speeding-it-up.mdAdded speeding-it-up.md (+7 lines)tf-test.log.txtAdded tf-test.log.txt (+128 lines)clean-tf-logsUpdated clean-tf-logs (+10/-6 lines)__main__.pyUpdated __main__.py (+109/-61 lines)auth.pyUpdated auth.py (+10/-8 lines)__init__.pyAdded __init__.py (+4 lines)get_provider_schema.pyUpdated get_provider_schema.py (+6/-7 lines)stop_provider.pyAdded stop_provider.py (+46 lines)base.pyUpdated base.py (+2/-2 lines)__init__.pyUpdated __init__.py (+2/-1 lines)client.pyUpdated client.py (+9/-9 lines)config.pyUpdated config.py (+53/-22 lines)debug.pyUpdated debug.py (+1/-1 lines)handshake.pyUpdated handshake.py (+18/-17 lines)protocol.pyUpdated protocol.py (+3/-4 lines)server.pyUpdated server.py (+150/-125 lines)conftest.pyUpdated conftest.py (+98/-24 lines)__init__.pyUpdated __init__.py (+0/-0 lines)__init__.pyUpdated __init__.py (+0/-0 lines)__init__.pyUpdated __init__.py (+0/-0 lines)test_handshake_magic_cookie.pyUpdated test_handshake_magic_cookie.py (+7/-5 lines)__init__.pyUpdated __init__.py (+0/-0 lines)__init__.pyUpdated __init__.py (+0/-0 lines)test_server.pyUpdated test_server.py (+49/-18 lines)test_server_coverage.pyUpdated test_server_coverage.py (+149/-78 lines)test_server_coverage_extra.pyUpdated test_server_coverage_extra.py (+76/-54 lines)test_server_destructor_cleanup.pyUpdated test_server_destructor_cleanup.py (+20/-25 lines)x_segfault_test_server_coverage_extra.pyRemoved x_segfault_test_server_coverage_extra.py (-290 lines)test_transport_unix_2.pyUpdated test_transport_unix_2.py (+1/-1 lines)__init__.pyUpdated __init__.py (+0/-0 lines)tls-check.pyUpdated tls-check.py (+5/-5 lines)connection.pyAdded connection.py (+8 lines)schema.pyUpdated schema.py (+8/-6 lines)__init__.pyUpdated __init__.py (+10/-2 lines)base.pyUpdated base.py (+24/-5 lines)base.pyUpdated base.py (+2/-2 lines)decorators.pyUpdated decorators.py (+1/-1 lines)list.pyUpdated list.py (+4/-5 lines)map.pyUpdated map.py (+3/-3 lines)object.pyUpdated object.py (+7/-7 lines)tuple.pyUpdated tuple.py (+3/-4 lines)type.pyUpdated type.py (+3/-3 lines)
- Replaced
Dict[str, ...]withdict[str, ...]throughout: decouple internal52 files
.gitignoredynamic_config.pyfile_content.pytest_file_content.pybfiles-20250129-173732-grpc-python-example.txtspeeding-it-up.md__main__.pyauth.pyhandler.pycapabilities.py__init__.pyterraform_handshake.py__init__.pyget_provider_schema.pystop_provider.pybase.pyregistry.py__init__.pyclient.pyconfig.pydebug.pyhandshake.pyprotocol.pyserver.pyconftest.py__init__.py__init__.py__init__.pytest_handshake_magic_cookie.py__init__.py__init__.pytest_server.pytest_server_coverage.pytest_server_coverage_extra.pytest_server_destructor_cleanup.pyx_segfault_test_server_coverage_extra.pytest_transport_unix_2.py__init__.pytls-check.pyconnection.pyschema.py__init__.pybase.pybase.pylist.pymap.pyobject.pytuple.pytype.py__init__.pycrypto.pytest_terraform_handshake.py
- Replaced
List[str]withlist[str]incapabilities.pydecouple internal1 file
capabilities.py
- Replaced
Set[str]withset[str]incapabilities.pydecouple internal1 file
capabilities.py
Handler Restructure
1 file changed
handler.pyUpdated handler.py (+78/-202 lines)
Import Modernization
6 files changed
dynamic_config.pyUpdated dynamic_config.py (+13/-8 lines)file_content.pyUpdated file_content.py (+182/-96 lines)test_file_content.pyUpdated test_file_content.py (+342/-2 lines)registry.pyUpdated registry.py (+5/-3 lines)__init__.pyRemoved __init__.py (-1 lines)crypto.pyUpdated crypto.py (+1/-2 lines)
- Removed unused
typingimports (Dict,List,Set) across multiple modules specify internal3 files
__init__.pyterraform_handshake.pytest_terraform_handshake.py
- Added proper module header comments to
resources/registry.pyspecify errata1 file
registry.py
- Removed unused
utils/__init__.pyimport deprecate internal1 file
__init__.py