mirror of
https://github.com/facebookresearch/ReAgent.git
synced 2026-05-17 12:40:39 +00:00
17f0142e0a
Summary: title Reviewed By: czxttkl Differential Revision: D22297847 fbshipit-source-id: 6cb909df9353e99411286e78b90b644469ab5785
16 lines
401 B
Python
16 lines
401 B
Python
#!/usr/bin/env python3
|
|
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
|
|
|
"""
|
|
We should revisit this at some point. Config classes shouldn't subclass from this.
|
|
"""
|
|
import dataclasses
|
|
from dataclasses import dataclass
|
|
from typing import cast
|
|
|
|
|
|
@dataclass
|
|
class BaseDataClass:
|
|
def _replace(self, **kwargs):
|
|
return cast(type(self), dataclasses.replace(self, **kwargs))
|