Make mypy opt-out instead of opt-in (#33205)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
@@ -570,7 +570,7 @@ class CompilationConfig:
|
||||
pass_config: PassConfig = field(default_factory=PassConfig)
|
||||
"""Custom inductor passes, see PassConfig for more details"""
|
||||
|
||||
max_cudagraph_capture_size: int | None = field(default=None)
|
||||
max_cudagraph_capture_size: int = field(default=None)
|
||||
"""The maximum cudagraph capture size.
|
||||
|
||||
If cudagraph_capture_sizes is specified, this will be set to the largest
|
||||
@@ -743,6 +743,7 @@ class CompilationConfig:
|
||||
"level",
|
||||
"mode",
|
||||
"cudagraph_mode",
|
||||
"max_cudagraph_capture_size",
|
||||
"use_inductor_graph_partition",
|
||||
mode="wrap",
|
||||
)
|
||||
|
||||
@@ -9,7 +9,7 @@ import inspect
|
||||
import json
|
||||
import pathlib
|
||||
import textwrap
|
||||
from collections.abc import Callable, Iterable, Mapping, Sequence, Set
|
||||
from collections.abc import Callable, Mapping, Sequence, Set
|
||||
from dataclasses import MISSING, Field, dataclass, field, fields, is_dataclass, replace
|
||||
from itertools import pairwise
|
||||
from typing import TYPE_CHECKING, Any, Protocol, TypeVar
|
||||
@@ -75,7 +75,7 @@ def get_field(cls: ConfigType, name: str) -> Field:
|
||||
|
||||
def getattr_iter(
|
||||
object: object,
|
||||
names: Iterable[str],
|
||||
names: Sequence[str],
|
||||
default: Any | None = None,
|
||||
default_factory: Callable[[], Any] | None = None,
|
||||
warn: bool = False,
|
||||
|
||||
Reference in New Issue
Block a user