Replies: 1 comment 1 reply
-
Hi Bill and thanks for reaching out. I see the use-case. However, I don't think it's particularly Pythonic (granted that assessment is opinionated). Let me quote the Python docs https://docs.python.org/3/library/stdtypes.html#lists
https://docs.python.org/3/library/stdtypes.html#tuples
These design principles are also reflected in the typing system. You can annotate something with Since the To that extend I suggest to adjust def load_db_config():
result = ... # whatever you already had
if "auth" in result:
result["auth"] = tuple(result["auth"])
return result Best regards |
Beta Was this translation helpful? Give feedback.
-
Hello,
I want to create a neo4j driver by passing args loaded from a TOML.
But I found that drivers created from this always throw an error "Unable to retrieve routing information".
I tried to find the reason, and got this.
Is it possible to let auth also accept an array?
Best regards,
Bill
Beta Was this translation helpful? Give feedback.
All reactions