Skip to content

Commit

Permalink
Make return type more explicit.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyandrewmeyer committed Apr 10, 2024
1 parent 2ceafad commit edc5565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ops/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1551,7 +1551,7 @@ def __len__(self):
def __iter__(self):
return iter(self._data)

def __getitem__(self, key: Union['Unit', 'Application']):
def __getitem__(self, key: Union['Unit', 'Application']) -> 'RelationDataContent':
return self._data[key]

def __repr__(self):
Expand Down

0 comments on commit edc5565

Please sign in to comment.