Skip to content

Commit b57909c

Browse files
committed
chore(nano): remove deprecated attribute from API
1 parent a5d22a1 commit b57909c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

hathor/nanocontracts/resources/blueprint.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ def render_GET(self, request: 'Request') -> bytes:
167167
name=blueprint_class.__name__,
168168
attributes=attributes,
169169
public_methods=public_methods,
170-
private_methods=view_methods, # DEPRECATED
171170
view_methods=view_methods,
172171
docstring=inspect.getdoc(blueprint_class),
173172
)
@@ -194,7 +193,6 @@ class BlueprintInfoResponse(Response):
194193
name: str
195194
attributes: dict[str, str]
196195
public_methods: dict[str, MethodInfo]
197-
private_methods: dict[str, MethodInfo] # DEPRECATED
198196
view_methods: dict[str, MethodInfo]
199197
docstring: str | None
200198

hathor_tests/resources/nanocontracts/test_blueprint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def test_success(self) -> Generator[Deferred[Any], Any, None]:
146146
'docstring': None,
147147
},
148148
}
149-
self.assertEqual(data['private_methods'], expected_data)
149+
self.assertEqual(data['view_methods'], expected_data)
150150

151151

152152
class BuiltinBlueprintInfoTest(BaseBlueprintInfoTest):

0 commit comments

Comments
 (0)