Skip to content

Commit

Permalink
chore: address __new__
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
  • Loading branch information
aarnphm committed Oct 26, 2022
1 parent 849851e commit 85e7fa3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bentoml/metrics.py
Expand Up @@ -35,6 +35,8 @@ def __call__(self, *args: t.Any, **kwargs: t.Any) -> t.Any:
return self

def __getattr__(self, item: t.Any) -> t.Any:
if item in ("_attr", "_proxy", "_initialized", "_args", "_kwargs"):
raise AttributeError(f"Attribute {item} is private to {self}.")
if self._proxy is None:
self._load_proxy()
assert self._initialized
Expand Down

0 comments on commit 85e7fa3

Please sign in to comment.