Skip to content

Commit

Permalink
package: remove redundant filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
abn committed Mar 10, 2022
1 parent c8e3d3f commit 9964712
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/poetry/core/packages/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,10 @@ def all_requires(
"""
Returns the default dependencies and group dependencies.
"""
return self.requires + [
return [
dependency
for group in self._dependency_groups.values()
for dependency in group.dependencies
if group.name != "default"
]

def _get_author(self) -> Dict[str, Optional[str]]:
Expand Down

0 comments on commit 9964712

Please sign in to comment.