From 185cf04063b2a08bc855031b602734eb77e429a0 Mon Sep 17 00:00:00 2001 From: matejcik Date: Thu, 25 Jan 2024 11:08:46 +0100 Subject: [PATCH] chore(python): drop source support for Python 3.6 and 3.7 --- python/pyrightconfig.json | 2 +- python/tools/pybridge.py | 2 +- python/tools/trezorctl_script_client.py | 2 +- python/tox.ini | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/python/pyrightconfig.json b/python/pyrightconfig.json index 4a6906666..a6257e044 100644 --- a/python/pyrightconfig.json +++ b/python/pyrightconfig.json @@ -4,7 +4,7 @@ "tools", "helper-scripts" ], - "pythonVersion": "3.6", + "pythonVersion": "3.8", "typeCheckingMode": "basic", "reportMissingImports": false, "reportUntypedFunctionDecorator": true, diff --git a/python/tools/pybridge.py b/python/tools/pybridge.py index a9e75383a..225fc6c15 100644 --- a/python/tools/pybridge.py +++ b/python/tools/pybridge.py @@ -20,7 +20,7 @@ # python3 pybridge.py # 7. Start Suite again, or use any other Trezor-compatible software. # 8. Output of pybridge goes to console and also to file `pybridge.log` -from __future__ import annotations # type: ignore [unknown import symbol] +from __future__ import annotations from gevent import monkey diff --git a/python/tools/trezorctl_script_client.py b/python/tools/trezorctl_script_client.py index 527c7a670..c77d703be 100644 --- a/python/tools/trezorctl_script_client.py +++ b/python/tools/trezorctl_script_client.py @@ -86,7 +86,7 @@ def get_address() -> str: args = """ trezorctl --script get-address -n "m/49h/0h/0h/0/0" """.strip() - p = subprocess.Popen( # type: ignore [No overloads for "__new__" match the provided arguments] + p = subprocess.Popen( args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, diff --git a/python/tox.ini b/python/tox.ini index 0d16cafc8..2d821bd11 100644 --- a/python/tox.ini +++ b/python/tox.ini @@ -7,9 +7,9 @@ [tox] envlist = - py{36,37,38,39,310,311}-{minimal,default,full} - py{36,37,38,39,310,311}-click{7,80} - py{37,38,39,310,311}-click81 + py{38,39,310,311}-{minimal,default,full} + py{38,39,310,311}-click{7,80} + py{38,39,310,311}-click81 [testenv] deps = @@ -28,7 +28,7 @@ commands = # Run test suite !minimal: pytest --random-order tests -[testenv:py{36,37,38,39,310,311}-click{7,80,81}] +[testenv:py{38,39,310,311}-click{7,80,81}] deps = -rrequirements.txt click7: click>=7,<8