Skip to content

Commit

Permalink
Remove PythonExecutable's immutable_input_digests (pantsbuild#19386)
Browse files Browse the repository at this point in the history
It's dead code (and is has an incorrect annotation to boot!)
  • Loading branch information
thejcannon authored Jun 27, 2023
1 parent af8f979 commit 74ff548
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/python/pants/backend/python/util_rules/pex_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,14 @@ class PythonExecutable(BinaryPath, EngineAwareReturnType):
"""The BinaryPath of a Python executable for user code, along with some extras."""

append_only_caches: FrozenDict[str, str] = FrozenDict({})
immutable_input_digests: FrozenDict[str, str] = FrozenDict({})

def __init__(
self,
path: str,
fingerprint: str | None = None,
append_only_caches: Mapping[str, str] = FrozenDict({}),
immutable_input_digests: Mapping[str, str] = FrozenDict({}),
) -> None:
object.__setattr__(self, "append_only_caches", FrozenDict(append_only_caches))
object.__setattr__(self, "immutable_input_digests", FrozenDict(immutable_input_digests))
super().__init__(path, fingerprint)
self.__post_init__()

Expand Down

0 comments on commit 74ff548

Please sign in to comment.