Skip to content

Sync typing and warnings compat from tmt#297

Merged
psss merged 1 commit into
teemtee:mainfrom
LecrisUT:feat/typing-compat
May 19, 2026
Merged

Sync typing and warnings compat from tmt#297
psss merged 1 commit into
teemtee:mainfrom
LecrisUT:feat/typing-compat

Conversation

@LecrisUT
Copy link
Copy Markdown
Member

ruff rules are not synced because ruff is not configured here

@LecrisUT LecrisUT force-pushed the feat/typing-compat branch from 28bb67e to 2e00248 Compare May 18, 2026 15:42
@happz happz added this to planning May 18, 2026
@github-project-automation github-project-automation Bot moved this to backlog in planning May 18, 2026
@happz happz moved this from backlog to review in planning May 18, 2026
@psss
Copy link
Copy Markdown
Member

psss commented May 19, 2026

This is blocking #293, adding to the sprint.

@happz
Copy link
Copy Markdown
Contributor

happz commented May 19, 2026

"Sync typing compat from tmt" - and warnings too, right?

@LecrisUT
Copy link
Copy Markdown
Member Author

"Sync typing compat from tmt" - and warnings too, right?

Technically still typing related (from typing_extension), but couldn't find wording to describe that. Feel free to edit the title

@psss psss changed the title Sync typing compat from tmt Sync typing and warnings compat from tmt May 19, 2026
@psss
Copy link
Copy Markdown
Member

psss commented May 19, 2026

Feel free to edit the title

Ok, title updated and approved. One more review missing.

@psss psss merged commit d25d370 into teemtee:main May 19, 2026
15 checks passed
@github-project-automation github-project-automation Bot moved this from review to done in planning May 19, 2026
@psss psss added this to the 1.8 milestone May 19, 2026
@LecrisUT LecrisUT deleted the feat/typing-compat branch May 19, 2026 10:14
therazix pushed a commit that referenced this pull request Jun 2, 2026
This is quite a big one, but I will keep the commits relatively
logically contained for easier review commit by commit. The idea here
is:
- Add a container for defining the context dimension comparison
operators: `ContextDimension`
- Users can extend `ContextDimension` by sub-classing it and defining
the `_dimension_name` it is linked to
- If a dimension is not found in the sub-classes, the `create_default`
is used, which by default wraps around `ContextValue` for
backwards-compatibility
- All of the comparator logic was moved to `ContextDimension` instead.
`Operators` and decorators were added to manage these more dynamically
- Some cleanups
- `staticmethod` -> `classmethod` to allow expanding the `Context` class
  - `re_expression_triple` was made a function for the reason above
  - Dropped some dead-code parts

Closes #289
Depends-on #297

---------

Signed-off-by: Cristian Le <git@lecris.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: done

Development

Successfully merging this pull request may close these issues.

4 participants