aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2023-06-27 09:23:06 +0200
committerHarald Welte <laforge@osmocom.org>2023-06-27 09:26:28 +0200
commit985ff31efa340ec390f00a772433635ddb341c90 (patch)
tree1a693469c762d37ab95b7e46d9be0b44005c43fa
parente126872a29b5f4919c33ee5080f461ec83bc1c47 (diff)
work-around what appears to be a pylint bug
smpp.pdu.pdu_types.DataCodingScheme.GSM_MESSAGE_CLASS very much exists, and I can prove that manually in the python shell. So let's assume this is a pylint bug and work around it pySim/sms.py:72:21: E1101: Instance of 'DataCodingScheme' has no 'GSM_MESSAGE_CLASS' member (no-member) Change-Id: Iab34bae06940fecf681af9f45b8657e9be8cbc7b
-rw-r--r--pySim/sms.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pySim/sms.py b/pySim/sms.py
index a15bbcb..88ee27a 100644
--- a/pySim/sms.py
+++ b/pySim/sms.py
@@ -69,6 +69,8 @@ def smpp_dcs_is_8bit(dcs: pdu_types.DataCoding) -> bool:
if dcs == pdu_types.DataCoding(pdu_types.DataCodingScheme.DEFAULT,
pdu_types.DataCodingDefault.OCTET_UNSPECIFIED_COMMON):
return True
+ # pySim/sms.py:72:21: E1101: Instance of 'DataCodingScheme' has no 'GSM_MESSAGE_CLASS' member (no-member)
+ # pylint: disable=no-member
if dcs.scheme == pdu_types.DataCodingScheme.GSM_MESSAGE_CLASS and dcs.schemeData['msgCoding'] == pdu_types.DataCodingGsmMsgCoding.DATA_8BIT:
return True
else: