Skip to content

Commit 9aa575b

Browse files
committed
Fix python example build
1 parent ffd8687 commit 9aa575b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

python/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ test_to_example(
6868
output = "python/example.py",
6969
removed_lines = ["assert_that", "todo"],
7070
changed_words = {
71-
"test_example(self)": "typedb_example()",
71+
"test_example(self)": "typedb_example(self)",
7272
"TestExample(TestCase)": "TypeDBExample",
7373
},
7474
header_comment_sign = "#",

python/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ from typedb.driver import *
3737

3838
class TypeDBExample:
3939

40-
def typedb_example():
40+
def typedb_example(self):
4141
# Open a driver connection. Specify your parameters if needed
4242
# The connection will be automatically closed on the "with" block exit
4343
with TypeDB.driver(TypeDB.DEFAULT_ADDRESS, Credentials("admin", "password"), DriverOptions()) as driver:

python/example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
class TypeDBExample:
77

8-
def typedb_example():
8+
def typedb_example(self):
99
# Open a driver connection. Specify your parameters if needed
1010
# The connection will be automatically closed on the "with" block exit
1111
with TypeDB.driver(TypeDB.DEFAULT_ADDRESS, Credentials("admin", "password"), DriverOptions()) as driver:

0 commit comments

Comments
 (0)