@@ -169,8 +169,7 @@ def __init__(self, ptr: cffi.FFI.CData, *, owned: bool = False) -> None:
169
169
"""
170
170
if ffi .typeof (ptr ).cname != "struct AsynchronousMessage *" :
171
171
msg = (
172
- "ptr must be a struct AsynchronousMessage, got"
173
- f" { ffi .typeof (ptr ).cname } "
172
+ f"ptr must be a struct AsynchronousMessage, got { ffi .typeof (ptr ).cname } "
174
173
)
175
174
raise TypeError (msg )
176
175
self ._ptr = ptr
@@ -238,7 +237,7 @@ def __init__(self, ptr: cffi.FFI.CData) -> None:
238
237
If the `ptr` is not a `struct Generator`.
239
238
"""
240
239
if ffi .typeof (ptr ).cname != "struct Generator *" :
241
- msg = "ptr must be a struct Generator, got" f" { ffi .typeof (ptr ).cname } "
240
+ msg = f "ptr must be a struct Generator, got { ffi .typeof (ptr ).cname } "
242
241
raise TypeError (msg )
243
242
self ._ptr = ptr
244
243
@@ -457,7 +456,7 @@ def __init__(self, ptr: cffi.FFI.CData) -> None:
457
456
If the `ptr` is not a `struct MatchingRule`.
458
457
"""
459
458
if ffi .typeof (ptr ).cname != "struct MatchingRule *" :
460
- msg = "ptr must be a struct MatchingRule, got" f" { ffi .typeof (ptr ).cname } "
459
+ msg = f "ptr must be a struct MatchingRule, got { ffi .typeof (ptr ).cname } "
461
460
raise TypeError (msg )
462
461
self ._ptr = ptr
463
462
@@ -618,9 +617,7 @@ def __init__(self, ptr: cffi.FFI.CData, *, owned: bool = True) -> None:
618
617
If the `ptr` is not a `struct MessageContents`.
619
618
"""
620
619
if ffi .typeof (ptr ).cname != "struct MessageContents *" :
621
- msg = (
622
- "ptr must be a struct MessageContents, got" f" { ffi .typeof (ptr ).cname } "
623
- )
620
+ msg = f"ptr must be a struct MessageContents, got { ffi .typeof (ptr ).cname } "
624
621
raise TypeError (msg )
625
622
self ._ptr = ptr
626
623
self ._owned = owned
@@ -761,8 +758,7 @@ def __init__(self, ptr: cffi.FFI.CData) -> None:
761
758
"""
762
759
if ffi .typeof (ptr ).cname != "struct MessageMetadataPair *" :
763
760
msg = (
764
- "ptr must be a struct MessageMetadataPair, got"
765
- f" { ffi .typeof (ptr ).cname } "
761
+ f"ptr must be a struct MessageMetadataPair, got { ffi .typeof (ptr ).cname } "
766
762
)
767
763
raise TypeError (msg )
768
764
self ._ptr = ptr
@@ -1146,7 +1142,7 @@ def __init__(self, ptr: cffi.FFI.CData) -> None:
1146
1142
If the `ptr` is not a `struct ProviderState`.
1147
1143
"""
1148
1144
if ffi .typeof (ptr ).cname != "struct ProviderState *" :
1149
- msg = "ptr must be a struct ProviderState, got" f" { ffi .typeof (ptr ).cname } "
1145
+ msg = f "ptr must be a struct ProviderState, got { ffi .typeof (ptr ).cname } "
1150
1146
raise TypeError (msg )
1151
1147
self ._ptr = ptr
1152
1148
@@ -1371,9 +1367,7 @@ def __init__(self, ptr: cffi.FFI.CData, *, owned: bool = False) -> None:
1371
1367
If the `ptr` is not a `struct SynchronousHttp`.
1372
1368
"""
1373
1369
if ffi .typeof (ptr ).cname != "struct SynchronousHttp *" :
1374
- msg = (
1375
- "ptr must be a struct SynchronousHttp, got" f" { ffi .typeof (ptr ).cname } "
1376
- )
1370
+ msg = f"ptr must be a struct SynchronousHttp, got { ffi .typeof (ptr ).cname } "
1377
1371
raise TypeError (msg )
1378
1372
self ._ptr = ptr
1379
1373
self ._owned = owned
@@ -1452,8 +1446,7 @@ def __init__(self, ptr: cffi.FFI.CData, *, owned: bool = False) -> None:
1452
1446
"""
1453
1447
if ffi .typeof (ptr ).cname != "struct SynchronousMessage *" :
1454
1448
msg = (
1455
- "ptr must be a struct SynchronousMessage, got"
1456
- f" { ffi .typeof (ptr ).cname } "
1449
+ f"ptr must be a struct SynchronousMessage, got { ffi .typeof (ptr ).cname } "
1457
1450
)
1458
1451
raise TypeError (msg )
1459
1452
self ._ptr = ptr
0 commit comments