diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 5f5bf3f..eb6a9c4 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -19,7 +19,7 @@ jobs: strategy: matrix: os: ["ubuntu-latest", "windows-latest"] - python-version: ["3.10", "3.11", "3.12"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v6 diff --git a/propka/parameters.py b/propka/parameters.py index 7f09863..26bebde 100644 --- a/propka/parameters.py +++ b/propka/parameters.py @@ -144,7 +144,7 @@ def parse_line(self, line): if len(words) == 0: return # parse the words - typeannotation = self.__annotations__.get(words[0]) + typeannotation = type(self).__annotations__.get(words[0]) if typeannotation is _T_NUMBER_DICTIONARY: self.parse_to_number_dictionary(words) elif typeannotation is _T_STRING_LIST: