Skip to content

Commit

Permalink
Allow shared_install and system_defined to be None
Browse files Browse the repository at this point in the history
  • Loading branch information
Gobot1234 committed Apr 10, 2023
1 parent 5dc8682 commit a924d77
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions steam/manifest.py
Expand Up @@ -719,9 +719,9 @@ class HeadlessDepot:
"""The depot's maximum size."""
config: MultiDict[str]
"""The depot's configuration settings."""
shared_install: bool
shared_install: bool | None
"""Whether this depot supports shared installs"""
system_defined: bool
system_defined: bool | None
"""Whether this depot is system defined."""

def __repr__(self) -> str:
Expand Down Expand Up @@ -913,8 +913,8 @@ def __init__(
name = depot.get("name")
config = depot.get("config", MultiDict())
max_size = int(depot["maxsize"]) if "maxsize" in depot else None
shared_install = bool(int(depot.get("sharedinstall", False)))
system_defined = bool(int(depot.get("system_defined", False)))
shared_install = bool(int(shared_install)) if (shared_install := depot.get("sharedinstall")) else None
system_defined = bool(int(system_defined)) if (system_defined := depot.get("system_defined")) else None
try:
manifests = depot["manifests"]
except KeyError:
Expand Down

0 comments on commit a924d77

Please sign in to comment.