Skip to content

Commit

Permalink
Fix issue with typing-extensions (#89)
Browse files Browse the repository at this point in the history
* Add pydantic dataclass annotation

* Resolve known pydantic typing_extensions issue

* Decouple from service template
  • Loading branch information
walzph committed Sep 25, 2023
1 parent 99f0389 commit 1b44c7a
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 388 deletions.
13 changes: 0 additions & 13 deletions .deprecated_files

This file was deleted.

2 changes: 0 additions & 2 deletions .deprecated_files_ignore

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/check_template_files.yaml

This file was deleted.

29 changes: 0 additions & 29 deletions .mandatory_files

This file was deleted.

10 changes: 0 additions & 10 deletions .mandatory_files_ignore

This file was deleted.

46 changes: 0 additions & 46 deletions .static_files

This file was deleted.

10 changes: 0 additions & 10 deletions .static_files_ignore

This file was deleted.

2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Docs Folder
Documentation is comming soon.
Documentation is coming soon.
4 changes: 0 additions & 4 deletions example_data/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion ghga_service_chassis_lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@

"""A library that contains the basic chassis functionality used in services of GHGA"""

__version__ = "0.17.7"
__version__ = "0.17.8"
7 changes: 6 additions & 1 deletion ghga_service_chassis_lib/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,19 @@
"""Functionality for initializing, configuring, and running RESTful
webapps with FastAPI"""

from typing import Dict, Literal, Optional, Sequence, Union
from typing import Dict, Optional, Sequence, Union

import uvicorn
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from httpyexpect.server.handlers.fastapi_ import configure_exception_handler
from pydantic import BaseSettings, Field

try: # workaround for https://github.com/pydantic/pydantic/issues/5821
from typing_extensions import Literal
except ImportError:
from typing import Literal # type: ignore

# type alias for log level parameter
LogLevel = Literal["critical", "error", "warning", "info", "debug", "trace"]

Expand Down

0 comments on commit 1b44c7a

Please sign in to comment.