Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ydoc server_settings usage example #1009

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

krassowski
Copy link
Member

It looks like we need to access it from BaseProvider, not from self.

@krassowski krassowski added the documentation Improvements or additions to documentation label Sep 21, 2024
Copy link
Member

@dlqqq dlqqq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@krassowski I'm fine with this change, but not merging this yet since it's still in draft.

Isn't this a bug? If server_settings is a class attribute, then self.server_settings should still resolve to BaseProvider.server_settings. Not sure why it can't be accessed through self here.

@krassowski
Copy link
Member Author

That's exactly why it is marked as a draft. I needed this change but don't fully understand why and want to explore a little bit before in undrafting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants