Skip to content

Commit b689a02

Browse files
committed
pylock: remove unused argument
1 parent 4bc1bed commit b689a02

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/pip/_internal/models/pylock.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,10 @@ def _toml_dict_factory(data: List[Tuple[str, Any]]) -> Dict[str, Any]:
6565
}
6666

6767

68-
def _get(
69-
d: Dict[str, Any], expected_type: Type[T], key: str, default: Optional[T] = None
70-
) -> Optional[T]:
68+
def _get(d: Dict[str, Any], expected_type: Type[T], key: str) -> Optional[T]:
7169
"""Get value from dictionary and verify expected type."""
7270
if key not in d:
73-
return default
71+
return None
7472
value = d[key]
7573
if not isinstance(value, expected_type):
7674
raise PylockValidationError(

0 commit comments

Comments
 (0)