Skip to content

Commit

Permalink
fix unsupported operand type(s) for |: 'type' and 'NoneType' for pyth…
Browse files Browse the repository at this point in the history
…on <3.10
  • Loading branch information
fynnfluegge committed Aug 25, 2023
1 parent cf7f766 commit 9b81920
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc_comments_ai/treesitter/treesitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@

class TreesitterNode:
def __init__(
self, name: str | bytes | None, doc_comment: str | None, node: tree_sitter.Node
self,
name: "str | bytes | None",
doc_comment: "str | None",
node: tree_sitter.Node,
):
self.name = name
self.doc_comment = doc_comment
Expand Down

0 comments on commit 9b81920

Please sign in to comment.