Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Sep 10, 2024
1 parent 525d0de commit 951e4e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensordict/tensorclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@
from typing import dataclass_transform
except ImportError:

def dataclass_transform(args):
def dataclass_transform(*args, **kwargs):
"""No-op.
Placeholder for dataclass_transform (python<3.11).
"""
return args
return lambda cls: cls


T = TypeVar("T", bound=TensorDictBase)
Expand Down

0 comments on commit 951e4e9

Please sign in to comment.