Skip to content

Typing info is wrong for set_user #1164

Closed

Description

@cancan101

Type for set_user shows (Dict[str, Any]), see:

def set_user(self, value):
# type: (Dict[str, Any]) -> None
; however, the docs show passing None to clear out the user:
https://docs.sentry.io/platforms/python/guides/asgi/enriching-events/identify-user/

Type should be Optional[Dict[str, Any]].

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions