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

mydiracx extension extensions/src/mydiracx #124

Closed
wants to merge 49 commits into from

Conversation

ruslan33
Copy link

@ruslan33 ruslan33 commented Oct 3, 2023

First prototype of diracx extension

@chaen
Copy link
Contributor

chaen commented Oct 17, 2023

Thanks, we will keep this open, and start from this one after the workshop

@chrisburr chrisburr linked an issue Oct 26, 2023 that may be closed by this pull request
6 tasks
@@ -0,0 +1,5 @@
from __future__ import annotations

__all__ = "DummyDB"
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be a list

@@ -0,0 +1,56 @@
from __future__ import annotations
Copy link
Contributor

Choose a reason for hiding this comment

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

This file is not needed

@@ -0,0 +1,5 @@
from __future__ import annotations

__all__ = "sql"
Copy link
Contributor

Choose a reason for hiding this comment

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

This need sto be a list

@@ -0,0 +1,294 @@
from __future__ import annotations
Copy link
Contributor

Choose a reason for hiding this comment

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

This file is not needed

Comment on lines 5 to 17
from typing import Annotated, TypeVar

from fastapi import Depends

from mydiracx.db.sql import DummyDB as _DummyDB

T = TypeVar("T")


def add_settings_annotation(cls: T) -> T:
"""Add a `Depends` annotation to a class that has a `create` classmethod."""
return Annotated[cls, Depends(cls.create)] # type: ignore

Copy link
Contributor

Choose a reason for hiding this comment

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

All this is useless

@chaen
Copy link
Contributor

chaen commented May 16, 2024

@ruslan33 as agreed I'll start from your PR and push it a bit further. Thanks a lot for it !

@chaen
Copy link
Contributor

chaen commented Jun 4, 2024

I'll close this one and continue your work in #249
Thanks a lot !

@chaen chaen closed this Jun 4, 2024
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.

Example extension
2 participants