Skip to content

Commit

Permalink
Fix type hint issue in store init
Browse files Browse the repository at this point in the history
Make it explicit that None is an acceptable value

Fixes neo4j-labs#37
  • Loading branch information
nmervaillie committed Aug 29, 2024
1 parent 23d0635 commit 7bb4b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdflib_neo4j/Neo4jStore.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Neo4jStore(Store):

context_aware = True

def __init__(self, config: Neo4jStoreConfig, neo4j_driver: Driver = None):
def __init__(self, config: Neo4jStoreConfig, neo4j_driver: Driver | None = None):
self.__open = False
self.driver = neo4j_driver
self.session = None
Expand Down

0 comments on commit 7bb4b43

Please sign in to comment.