Skip to content

Commit

Permalink
Merge pull request #706 from mit-ll-responsible-ai/dependabot/pip/dep…
Browse files Browse the repository at this point in the history
…s/main/pyright-1.1.371

Bump pyright from 1.1.364 to 1.1.371 in /deps
  • Loading branch information
rsokl authored Jul 12, 2024
2 parents cdee868 + e65813e commit dd04eed
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion deps/requirements-pyright.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pyright==1.1.364
pyright==1.1.371
18 changes: 9 additions & 9 deletions src/hydra_zen/structured_configs/_implementations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1174,13 +1174,13 @@ def _make_hydra_compatible(

return cls.builds(
type(value),
value.func,
exclude=list(value._exclude),
pre_call=pre_call,
unpack_kwargs=value._unpack_kwargs,
resolve_pre_call=value._resolve,
run_in_context=value._run_in_context,
instantiation_wrapper=value._instantiation_wrapper,
value.func, # type: ignore
exclude=list(value._exclude), # type: ignore
pre_call=pre_call, # type: ignore
unpack_kwargs=value._unpack_kwargs, # type: ignore
resolve_pre_call=value._resolve, # type: ignore
run_in_context=value._run_in_context, # type: ignore
instantiation_wrapper=value._instantiation_wrapper, # type: ignore
populate_full_signature=True,
)
resolved_value = value
Expand Down Expand Up @@ -3217,7 +3217,7 @@ def make_config(
]

config_fields.extend(
[
[ # type: ignore
(
str(f.name),
(
Expand Down Expand Up @@ -3455,7 +3455,7 @@ def kwargs_of(
return cls.builds( # type: ignore
__hydra_target,
populate_full_signature=True,
zen_exclude=zen_exclude,
zen_exclude=zen_exclude, # type: ignore
zen_dataclass=zen_dataclass,
**kwarg_overrides, # type: ignore
)
Expand Down
5 changes: 3 additions & 2 deletions src/hydra_zen/typing/_implementations.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import sys
import types
from dataclasses import MISSING
from dataclasses import _MISSING_TYPE # pyright: ignore[reportPrivateUsage]
from datetime import timedelta
from enum import Enum
from pathlib import Path, PosixPath, WindowsPath
Expand Down Expand Up @@ -193,7 +193,7 @@ class HydraPartialBuilds(Builds[T], HydraPartialMixin[T], Protocol[T]): ...
ListConfig,
DictConfig,
Enum,
Literal[MISSING],
_MISSING_TYPE,
# Even thought this is redundant with Sequence, it seems to
# be needed for pyright to do proper checking of tuple contents
Tuple["HydraSupportedType", ...],
Expand Down Expand Up @@ -248,6 +248,7 @@ class HydraPartialBuilds(Builds[T], HydraPartialMixin[T], Protocol[T]): ...
Sequence["CustomConfigType[T2]"],
Mapping[Any, "CustomConfigType[T2]"],
Partial["CustomConfigType[T2]"],
Partial[T2],
]
"""The type `CustomConfigType[MyType]` describes: `MyType`, all hydra-zen config-compatible types, and all hydra-zen compatible containers containing said types.
Expand Down

0 comments on commit dd04eed

Please sign in to comment.