Skip to content

Commit 4f158f6

Browse files
committed
fix docs
1 parent 315ae48 commit 4f158f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pulsar/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def __init__(self, context: _pulsar.EncryptionContext):
223223
224224
Parameters
225225
----------
226-
key: _pulsar.EncryptionContext
226+
context: _pulsar.EncryptionContext
227227
The underlying EncryptionContext instance from the C extension.
228228
"""
229229
self._context = context
@@ -366,7 +366,7 @@ def producer_name(self) -> str:
366366
"""
367367
return self._message.producer_name()
368368

369-
def encryption_context(self) -> EncryptionContext:
369+
def encryption_context(self) -> EncryptionContext | None:
370370
"""
371371
Get the encryption context for this message or None if it's not encrypted.
372372

0 commit comments

Comments
 (0)