Skip to content

Commit 7154c2e

Browse files
committed
Code cleanup.
1 parent cb7c21f commit 7154c2e

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

c8y_api/model/matcher/_pydf_matcher.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77

88
class PydfMatcher(JsonMatcher):
9-
"""JsonMatcher implementation for JMESPath."""
9+
"""JsonMatcher implementation for PyDF (Python Display Filter)."""
10+
# pylint: disable=protected-access
1011

1112
def __init__(self, expression: str, warn_on_error: bool = True):
1213
super().__init__(expression, warn_on_error)

samples/client_side_filtering.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright (c) 2025 Cumulocity GmbH
2+
13
import logging
24

35
from c8y_api.app import SimpleCumulocityApp
@@ -7,6 +9,7 @@
79

810
logging.basicConfig(level=logging.DEBUG)
911

12+
# pylint: disable=pointless-string-statement
1013
"""
1114
This example demonstrates how to use the client-side-filtering feature of the
1215
Python Cumulocity API.
@@ -110,4 +113,4 @@
110113
d1.delete()
111114
d2.delete()
112115
d3.delete()
113-
d4.delete()
116+
d4.delete()

tests/model/test_matchers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2025 Cumulocity GmbH
2+
3+
# pylint: disable=wildcard-import, unused-wildcard-import
4+
15
import logging
26
import re
37
from unittest.mock import patch, Mock

0 commit comments

Comments
 (0)