-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃摎 Documentation: Better Readability of the Python SDK create Database #5582
Comments
Hi, thanks for bringing this up. What your suggesting will result in this: /*/PythonProject/venv/bin/python /*/test.py
File "/*/test.py", line 6
.set_project('5df5acd0d48c2') # Your project ID \
IndentationError: unexpected indent
Process finished with exit code 1 You can trail or append comments after or before backticks. |
sorry this is the better code |
Comments are important here for us. While this is definitely better looking code, I think it's less useful for readers :) |
This was referenced Jul 25, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
馃挱 Description
The syntax of the code you provided seems to have a minor error. Instead of using parentheses to wrap the client object and chaining the method calls, you can use backslashes "" to continue the lines for better readability. Here's the corrected code:
![better appwrite](https://private-user-images.githubusercontent.com/84433561/240818896-b6724446-3367-4ec8-8cd8-38386bba0760.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAwMDg1OTQsIm5iZiI6MTcyMDAwODI5NCwicGF0aCI6Ii84NDQzMzU2MS8yNDA4MTg4OTYtYjY3MjQ0NDYtMzM2Ny00ZWM4LThjZDgtMzgzODZiYmEwNzYwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAzVDEyMDQ1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlhODQ4OTY0NDNkMjQ5YTVjNzZlNTQ3ZmI1NDFiZDEwMzlhZjJiYjBkMTdhNDI5Y2VhZGUxMTBiN2JkMjQ5MWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.PkjqUrTLZ-ZbV7hNJSnZpPZW9Hz6ACQgBLF757Okjso)
馃憖 Have you spent some time to check if this issue has been raised before?
馃彚 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: