From 3e75725e9e7b60897540e65a7c65f56cfa4978c2 Mon Sep 17 00:00:00 2001 From: Tekktrik Date: Thu, 11 May 2023 00:34:23 -0400 Subject: [PATCH 1/2] Linted per pre-commit --- adafruit_imageload/pnm/ppm_binary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_imageload/pnm/ppm_binary.py b/adafruit_imageload/pnm/ppm_binary.py index c828654..b726dc4 100644 --- a/adafruit_imageload/pnm/ppm_binary.py +++ b/adafruit_imageload/pnm/ppm_binary.py @@ -16,7 +16,7 @@ """ try: - from typing import Tuple, Optional, List, Set + from typing import Tuple, Optional, Set from io import BufferedReader from displayio import Palette, Bitmap from ..displayio_types import PaletteConstructor, BitmapConstructor From ad55332bee1ef8994fab610898975a4122008356 Mon Sep 17 00:00:00 2001 From: Tekktrik Date: Thu, 11 May 2023 00:36:05 -0400 Subject: [PATCH 2/2] Specify Exception as builtins --- .pylintrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pylintrc b/.pylintrc index 40208c3..f945e92 100644 --- a/.pylintrc +++ b/.pylintrc @@ -396,4 +396,4 @@ min-public-methods=1 # Exceptions that will emit a warning when being caught. Defaults to # "Exception" -overgeneral-exceptions=Exception +overgeneral-exceptions=builtins.Exception