| # 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. |
| |
| # Allowlist for `python -m mypy.stubtest fluss`. Each entry is a regex matched |
| # against the fully-qualified symbol and suppresses a stub/runtime difference |
| # that is inherent to PyO3 and cannot be expressed in the stub. Keep this list |
| # minimal: stubtest errors on unused entries, so a stale line fails CI. |
| |
| # PyO3 cannot embed a literal default value in the generated text signature, so |
| # the real `error_code=-2` default is introspected as `Ellipsis`. We keep the |
| # accurate `-2` default in the stub for documentation and ignore the resulting |
| # default-value mismatch on the constructor. |
| fluss.FlussError.__new__ |