This is an automated email from the ASF dual-hosted git repository. sebb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push: new fe552bd Fix mypy crash fe552bd is described below commit fe552bd4224e9185591aec537cf995ab4b4e30ff Author: Sebb <s...@apache.org> AuthorDate: Sun Dec 8 00:27:55 2024 +0000 Fix mypy crash --- .github/workflows/type-tests.yml | 4 +--- server/endpoints/__init__.py | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/type-tests.yml b/.github/workflows/type-tests.yml index e6ef551..f611d40 100644 --- a/.github/workflows/type-tests.yml +++ b/.github/workflows/type-tests.yml @@ -31,9 +31,7 @@ jobs: python -m pip install --upgrade pip pip install -r tools/requirements.txt pip install -r server/requirements.txt - # mypy crashes: resolver.py:19: error: INTERNAL ERROR -- Please try using mypy master on GitHub - git clone https://github.com/python/mypy.git /tmp/mypy - python3 -m pip install --upgrade /tmp/mypy + pip install mypy pip list - name: Type testing with mypy run: | diff --git a/server/endpoints/__init__.py b/server/endpoints/__init__.py new file mode 100644 index 0000000..9021bc1 --- /dev/null +++ b/server/endpoints/__init__.py @@ -0,0 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# This file is needed to avoid a mypy crash in Python 3.12+