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 pyright for logger.py #546

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

Conversation

sachinpad
Copy link
Contributor

No description provided.

@sachinpad sachinpad requested a review from manugoyal January 29, 2025 18:36
Copy link
Contributor

@manugoyal manugoyal left a comment

Choose a reason for hiding this comment

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

nice! Just one thought about the span components v3 typing.

@@ -2392,7 +2402,9 @@ def compute_parent_object_id():
return parent_object_id.get()

arg_parent_object_id = LazyValue(compute_parent_object_id, use_mutex=False)
if parent_components.row_id:
if parent_components.row_id is not None:
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm kind-of annoying. Maybe we should change the span_identifier_v3.py representation to store these three fields in their own TypedDict, which is Optional, so that the type system can make this inference naturally.

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

Successfully merging this pull request may close these issues.

2 participants