Skip to content

Commit 609f2a1

Browse files
committed
Fix an additional case for python-poetry/poetry#4402
Resolves python-poetry/poetry#4402
1 parent ad33bc2 commit 609f2a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

poetry/core/version/markers.py

+3
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,9 @@ def validate(self, environment: Dict[str, Any]) -> bool:
297297
if self._name not in environment:
298298
return True
299299

300+
if self._constraint.is_empty():
301+
return True
302+
300303
return self._constraint.allows(self._parser(environment[self._name]))
301304

302305
def without_extras(self) -> MarkerTypes:

0 commit comments

Comments
 (0)