Update auth user type (#4062)

This commit is contained in:
William FH
2025-03-27 16:09:54 -07:00
committed by GitHub
2 changed files with 13 additions and 1 deletions
+12
View File
@@ -192,6 +192,18 @@ class BaseUser(typing.Protocol):
"""The permissions associated with the user."""
...
def __getitem__(self, key):
"""Get a key from your minimal user dict."""
...
def __contains__(self, key):
"""Check if a property exists."""
...
def __iter__(self):
"""Iterate over the keys of the user."""
...
class StudioUser:
"""A user object that's populated from authenticated requests from the LangGraph studio.
+1 -1
View File
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langgraph-sdk"
version = "0.1.59"
version = "0.1.60"
description = "SDK for interacting with LangGraph API"
authors = []
license = "MIT"