-
-
Notifications
You must be signed in to change notification settings - Fork 511
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
Private fields not private in Python 3.12. #3358
Labels
bug
Something isn't working
Comments
@rsr5 oh, that's unexpected! I'll check this today! |
@rsr5 ah! there's a small issue with your snippet: import strawberry
@strawberry.type
class User:
name: str
age: int
- secret: str = strawberry.Private[str]
+ secret: strawberry.Private[str]
@strawberry.type
class Query:
@strawberry.field
def user(self) -> User:
return User(name="Patrick", age=100, secret="can't tell")
schema = strawberry.Schema(query=Query) |
Well spotted! I just realised that as well. I was trying to reproduce something we are seeing in a larger project. I will have to keep trying! |
@rsr5 happy to do a call if you need help 😊 |
Very kind of you. I will have another go at reproducing first. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the Bug
Private fields not private in Python 3.12. I reproduced with the following code:
and I see the following at
http://0.0.0.0:8000/graphql
:System Information
Upvote & Fund
The text was updated successfully, but these errors were encountered: