Skip to content

Commit 78b6c15

Browse files
Apply suggestions from code review
Co-authored-by: Petr Viktorin <[email protected]>
1 parent e99277c commit 78b6c15

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Doc/library/ctypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2354,7 +2354,7 @@ Data types
23542354

23552355
.. attribute:: __pointer_type__
23562356

2357-
This attributes is a pointer type that was created by calling
2357+
The pointer type that was created by calling
23582358
:func:`POINTER` for corresponding ctypes data type. If a pointer type
23592359
was not yet created, the attribute is missing.
23602360

Lib/test/test_ctypes/test_c_simple_type_meta.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ def __init__(self, name, bases, dct, /, create_pointer_type=True):
243243
ns = {'_type_': self}
244244
internal_pointer_type = PointerMeta(f"p{name}", p_bases, ns)
245245
assert isinstance(internal_pointer_type, PyCPointerType)
246-
assert self.__pointer_type__ is not None
247246
assert self.__pointer_type__ is internal_pointer_type
248247

249248
class PointerMeta(PyCPointerType):
@@ -307,7 +306,6 @@ def __init__(self, name, bases, dct, /, create_pointer_type=True):
307306
ns = {'_type_': self}
308307
internal_pointer_type = PointerMeta(f"p{name}", p_bases, ns)
309308
assert isinstance(internal_pointer_type, PyCPointerType)
310-
assert self.__pointer_type__ is not None
311309
assert self.__pointer_type__ is internal_pointer_type
312310

313311
class PointerMeta(PyCPointerType):

0 commit comments

Comments
 (0)