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 17, 2022
1 parent aab93d7 commit 5c741e6
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 5c741e6

Please sign in to comment.