Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Feb 6, 2025
1 parent 0220471 commit 6f84874
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion tensordict/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6444,7 +6444,6 @@ def _get_tuple_maybe_non_tensor(self, key, default):
return result.data
return result


@overload
def get_at(self, key, index): ...

Expand Down
7 changes: 5 additions & 2 deletions tensordict/tensorclass.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -601,11 +601,14 @@ class TensorClass:
def get(self, key, default): ...
def get(self, key: NestedKey, *args, **kwargs) -> CompatibleType: ...
@overload
def get_at(self, key, index):...
def get_at(self, key, index): ...
@overload
def get_at(self, key, index, default): ...
def get_at(
self, key: NestedKey, *args, **kwargs,
self,
key: NestedKey,
*args,
**kwargs,
) -> CompatibleType: ...
def get_item_shape(self, key: NestedKey): ...
def update(
Expand Down

0 comments on commit 6f84874

Please sign in to comment.