Skip to content

Commit

Permalink
Refactor to improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Mar 23, 2021
1 parent 3a003b3 commit dab190a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions gapic/schema/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,12 @@ def module_alias(self) -> str:
return '_'.join(
(
''.join(
''.join(
[partial_name[0] for partial_name in i.split("_")]
)
for i in self.package
if i != self.api_naming.version
[
partial_name[0]
for i in self.package
for partial_name in i.split("_")
if i != self.api_naming.version
]
),
self.module,
)
Expand Down

0 comments on commit dab190a

Please sign in to comment.