Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix flake8
  • Loading branch information
sobolevn committed Nov 21, 2022
commit 7416e6ae0b3096557acaa7fc25accf3bccd675f6
2 changes: 0 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ per-file-ignores =
# https://github.com/PyCQA/flake8/issues/1079
# F811 redefinition of unused '...'
stdlib/typing.pyi: B, E301, E302, E305, E501, E701, E741, NQA102, F401, F403, F405, F811, F822, Y037
# `ExceptionGroup` and `BaseExceptionGroup` are not recognised as builtins yet:
test_cases/stdlib/builtins/check_exception_group.py: F821, E203, E301, E302, E305, E501
# Generated protobuf files include docstrings
*_pb2.pyi: B, E301, E302, E305, E501, E701, NQA102, Y021, Y026

Expand Down
4 changes: 4 additions & 0 deletions test_cases/stdlib/builtins/check_exception_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
from typing_extensions import assert_type

if sys.version_info >= (3, 11):
# This can be removed later, but right now `flake8` does not know
# about these two classes:
from builtins import BaseExceptionGroup, ExceptionGroup

# BaseExceptionGroup
# ==================

Expand Down