reformat stuff, fix backwards compatible typing

This commit is contained in:
Gergő Jedlicska
2022-09-24 16:22:04 +02:00
parent d9dbca2c68
commit 0cfe5db674
17 changed files with 72 additions and 73 deletions
+4 -1
View File
@@ -5,13 +5,16 @@ from specklepy.api import operations
import string
import random
class Sub(Base):
bar: List[str]
def random_string():
letters = string.ascii_lowercase
return "".join(random.choice(letters) for _ in range(10))
def create_object(child_count: int) -> Base:
foo = Base()
for i in range(child_count):
@@ -33,4 +36,4 @@ if __name__ == "__main__":
hash = operations.send(base=foo, transports=[transport], use_default_cache=False)
rec = operations.receive(hash, transport)
print(rec)
print(rec)