Skip to content

Commit

Permalink
use dict()
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-fang committed Jun 25, 2024
1 parent fb11d63 commit d7c0aad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wandb_workspaces/utils/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def validate_no_emoji(s: str) -> str:
def validate_spec_version(
spec: Dict[str, Any], *, expected_version: int
) -> Dict[str, Any]:
spec_section = spec.get("section", {})
spec_section = spec.get("section", dict())
actual_version = spec_section.get("version", -1)

if actual_version < expected_version:
Expand Down

0 comments on commit d7c0aad

Please sign in to comment.