Skip to content

refactor/type safe session#239

Open
2e0byo wants to merge 5 commits into
EbbLabs:mainfrom
2e0byo:refactor/type-safe-session
Open

refactor/type safe session#239
2e0byo wants to merge 5 commits into
EbbLabs:mainfrom
2e0byo:refactor/type-safe-session

Conversation

@2e0byo
Copy link
Copy Markdown
Contributor

@2e0byo 2e0byo commented Apr 28, 2026

This PR makes the ._active_session attr type safe, i.e. gets rid of all the red underlines from your IDE telling you it might be None.

This isn't IMHO the best way to handle this kind of state, but it's quick to do and should make the dev experience nicer. I could easily have done the others, I just wanted to show what it would look like. Open to thoughts.

[This PR is a superset of #238]

@2e0byo 2e0byo force-pushed the refactor/type-safe-session branch from 3a72934 to 5d4b769 Compare April 29, 2026 14:48
@2e0byo 2e0byo mentioned this pull request Apr 30, 2026
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.

1 participant