mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-09 18:09:17 +08:00
Drop flake8-noqa and remove workarounds to work with Ruff (#13571)
This commit is contained in:
@@ -91,9 +91,7 @@ class FrozenDict(dict[_KT, _VT]):
|
||||
@classmethod
|
||||
def fromkeys(cls, keys: Iterable[_KT], value: _VT | None = None) -> Self: ... # type: ignore[override]
|
||||
def updated(self, *a, **kw) -> Self: ...
|
||||
# Can't noqa because of https://github.com/plinss/flake8-noqa/pull/30
|
||||
# Signature conflicts with superclass, so let's just omit it
|
||||
# def __ior__(self, *a, **kw) -> NoReturn: ...
|
||||
def __ior__(self, *a, **kw) -> NoReturn: ... # type: ignore[misc] # noqa: Y034 # Signature conflicts with superclass
|
||||
def __setitem__(self, *a, **kw) -> NoReturn: ...
|
||||
def __delitem__(self, *a, **kw) -> NoReturn: ...
|
||||
def update(self, *a, **kw) -> NoReturn: ...
|
||||
|
||||
@@ -10,9 +10,6 @@ from pandas._typing import Scalar
|
||||
from ..base import _ConvertibleToCRS
|
||||
from ..geodataframe import GeoDataFrame
|
||||
|
||||
# inline ruff noqa at _SqlalchemyConnectionLike.__enter__ confuses flake8
|
||||
# ruff: noqa: PYI034
|
||||
|
||||
# Start SQLAlchemy hack
|
||||
# ---------------------
|
||||
# The code actually explicitly checks for SQLAlchemy's `Connection` and `Engine` with
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# flake8: noqa: NQA102 # https://github.com/plinss/flake8-noqa/issues/22
|
||||
# six explicitly re-exports builtins. Normally this is something we'd want to avoid.
|
||||
# But this is specifically a compatibility package.
|
||||
from builtins import * # noqa: UP029
|
||||
|
||||
Reference in New Issue
Block a user