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

Python SDK: Add a decorator to all out logging function to early-out #1474

Closed
wants to merge 1 commit into from

Conversation

emilk
Copy link
Member

@emilk emilk commented Mar 2, 2023

This replaces explicit checks with a decorator.

This decorator declaration preserves type information in Python 3.8 in my VSCode, which was a problem with previous attempts (#549).

In a follow-up PR we can add a try-catch to the decorator to prevent errors from bubbling up to the user (#549).

Checklist

This replaces explicit checks with a decorator.

This decorator declaration preserves type information
in Python 3.8 in my VSCode, which was a problem with previous attempts.

In a follow-up PR we can add a try-catch to the decorator to prevent
errors from bubbling up to the user.
@emilk emilk added the 🐍 Python API Python logging API label Mar 2, 2023
@emilk
Copy link
Member Author

emilk commented Mar 2, 2023

Superseded by #1477

@emilk emilk closed this Mar 2, 2023
@emilk emilk deleted the emilk/python-logging-decorator branch March 2, 2023 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐍 Python API Python logging API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant