Skip to content

Commit e4704ba

Browse files
authored
Don't print private members in signature (#27)
1 parent a5e99c3 commit e4704ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pose_evaluation/metrics/base.py

+3
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,15 @@ def update_signature_and_abbr(self, key: str, abbr: str, args: dict):
2727

2828
def format(self, short: bool = False) -> str:
2929
parts = []
30+
3031
# Always print the "name" value first, if available.
3132
name_value = self.signature_info.get("name")
3233
if name_value is not None:
3334
parts.append(str(name_value))
3435
# Process all other keys.
3536
for key, value in self.signature_info.items():
37+
if str(key).startswith("_"):
38+
continue
3639
if key == "name" or value is None:
3740
continue
3841
# Handle nested signature objects and wrap them in curly braces.

0 commit comments

Comments
 (0)