Fix a few more optional type errors.

This commit is contained in:
Jennifer Taylor
2021-05-31 18:14:51 +00:00
parent 38f0483cb5
commit b1b8b67fe3
3 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -788,7 +788,7 @@ class BinaryEncoding:
else:
return None
def encode(self, tree: Node, encoding: str=None) -> bytes:
def encode(self, tree: Node, encoding: Optional[str]=None) -> bytes:
"""
Given a tree of Node objects, encode the data with the current encoding.