diff --git a/pyproject.toml b/pyproject.toml index 00fdee31..3bcacb9f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -128,9 +128,7 @@ disable_error_code = [ "assert-type", "assignment", "attr-defined", - "import-not-found", "misc", - "name-defined", "no-redef", "operator", "override", diff --git a/stubs/matplotlib/backends/_backend_gtk.pyi b/stubs/matplotlib/backends/_backend_gtk.pyi index dc76decc..d906733f 100644 --- a/stubs/matplotlib/backends/_backend_gtk.pyi +++ b/stubs/matplotlib/backends/_backend_gtk.pyi @@ -1,5 +1,5 @@ # PyGObject is not easily installable on Windows, let tests pass as-is -from gi.repository import Gtk # pyright: ignore[reportMissingImports] +from gi.repository import Gtk # type: ignore[import-not-found] # pyright: ignore[reportMissingImports] from matplotlib import backend_tools from matplotlib._typing import * from matplotlib.backend_bases import FigureCanvasBase, FigureManagerBase, NavigationToolbar2, TimerBase, _Backend diff --git a/stubs/matplotlib/backends/backend_gtk3.pyi b/stubs/matplotlib/backends/backend_gtk3.pyi index 81268103..0f139b38 100644 --- a/stubs/matplotlib/backends/backend_gtk3.pyi +++ b/stubs/matplotlib/backends/backend_gtk3.pyi @@ -1,7 +1,7 @@ from typing import Callable # PyGObject is not easily installable on Windows, let tests pass as-is -from gi.repository import Gtk # pyright: ignore[reportMissingImports] +from gi.repository import Gtk # type: ignore[import-not-found] # pyright: ignore[reportMissingImports] from matplotlib._api import classproperty from matplotlib.backend_bases import FigureCanvasBase, ToolContainerBase diff --git a/stubs/networkx/algorithms/community/divisive.pyi b/stubs/networkx/algorithms/community/divisive.pyi new file mode 100644 index 00000000..c39616aa --- /dev/null +++ b/stubs/networkx/algorithms/community/divisive.pyi @@ -0,0 +1,6 @@ +from ...classes.graph import Graph + +__all__ = ["edge_betweenness_partition", "edge_current_flow_betweenness_partition"] + +def edge_betweenness_partition(G: Graph, number_of_sets: int, *, weight: str | None = None) -> list: ... +def edge_current_flow_betweenness_partition(G: Graph, number_of_sets: int, *, weight: str | None = None) -> list: ... diff --git a/stubs/sympy-stubs/assumptions/predicates/calculus.pyi b/stubs/sympy-stubs/assumptions/predicates/calculus.pyi new file mode 100644 index 00000000..6f785c17 --- /dev/null +++ b/stubs/sympy-stubs/assumptions/predicates/calculus.pyi @@ -0,0 +1,17 @@ +from sympy.assumptions import Predicate + +class FinitePredicate(Predicate): + name = ... + handler = ... + +class InfinitePredicate(Predicate): + name = ... + handler = ... + +class PositiveInfinitePredicate(Predicate): + name = ... + handler = ... + +class NegativeInfinitePredicate(Predicate): + name = ... + handler = ... diff --git a/stubs/sympy-stubs/assumptions/predicates/sets.pyi b/stubs/sympy-stubs/assumptions/predicates/sets.pyi new file mode 100644 index 00000000..437e6a8a --- /dev/null +++ b/stubs/sympy-stubs/assumptions/predicates/sets.pyi @@ -0,0 +1,49 @@ +from sympy.assumptions import Predicate + +class IntegerPredicate(Predicate): + name = ... + handler = ... + +class NonIntegerPredicate(Predicate): + name = ... + handler = ... + +class RationalPredicate(Predicate): + name = ... + handler = ... + +class IrrationalPredicate(Predicate): + name = ... + handler = ... + +class RealPredicate(Predicate): + name = ... + handler = ... + +class ExtendedRealPredicate(Predicate): + name = ... + handler = ... + +class HermitianPredicate(Predicate): + name = ... + handler = ... + +class ComplexPredicate(Predicate): + name = ... + handler = ... + +class ImaginaryPredicate(Predicate): + name = ... + handler = ... + +class AntihermitianPredicate(Predicate): + name = ... + handler = ... + +class AlgebraicPredicate(Predicate): + name = ... + AlgebraicHandler = ... + +class TranscendentalPredicate(Predicate): + name = ... + handler = ... diff --git a/stubs/transformers-stubs/models/auto/auto_factory.pyi b/stubs/transformers-stubs/models/auto/auto_factory.pyi index c715260f..dae681a0 100644 --- a/stubs/transformers-stubs/models/auto/auto_factory.pyi +++ b/stubs/transformers-stubs/models/auto/auto_factory.pyi @@ -7,8 +7,6 @@ from typing_extensions import TypeAlias from transformers.configuration_utils import PretrainedConfig from transformers.tokenization_utils_fast import PreTrainedTokenizerFast -from .configuration_auto import AutoConfig as AutoConfig - _LazyAutoMappingValue: TypeAlias = tuple[ # Tokenizers will depend on packages installed, too much variance and there are no common base or Protocol type[Any | None], diff --git a/stubs/transformers-stubs/models/auto/tokenization_auto.pyi b/stubs/transformers-stubs/models/auto/tokenization_auto.pyi index 1062a597..39e8e52b 100644 --- a/stubs/transformers-stubs/models/auto/tokenization_auto.pyi +++ b/stubs/transformers-stubs/models/auto/tokenization_auto.pyi @@ -3,11 +3,10 @@ from collections import OrderedDict from typing import Any from transformers.configuration_utils import PretrainedConfig +from transformers.models.auto.auto_factory import _LazyAutoMapping from transformers.tokenization_utils import PreTrainedTokenizer from transformers.tokenization_utils_fast import PreTrainedTokenizerFast -from .auto_factory import _LazyAutoMapping - TOKENIZER_MAPPING_NAMES: OrderedDict[str, tuple[str | None, str | None]] TOKENIZER_MAPPING: _LazyAutoMapping CONFIG_TO_TYPE: dict[type[PretrainedConfig], str]