Minor Changes

This commit is contained in:
2024-04-01 19:22:08 +02:00
parent 43055dde1b
commit 515c3372c6
5 changed files with 5 additions and 12 deletions

View File

@@ -30,7 +30,9 @@ jobs:
tag: tag:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: lint needs: lint
steps: steps:
- uses: actions/checkout@v4
- name: Git Version - name: Git Version
uses: codacy/git-version@2.8.0 uses: codacy/git-version@2.8.0
id: git_version id: git_version

View File

@@ -11,9 +11,6 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v5 uses: actions/setup-python@v5

View File

@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2024 Conrad Copyright (c) 2024 Conrad Großer
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@@ -1,9 +1,2 @@
# creyPY # creyPY
My collection of Python and FastAPI shortcuts etc. My collection of Python and FastAPI shortcuts etc.
# Release
``` rm -rf dist build creyPY.egg-info && python setup.py sdist bdist_wheel ```
``` twine upload dist/* ```

View File

@@ -9,6 +9,7 @@ from pydantic.json_schema import SkipJsonSchema
T = TypeVar("T") T = TypeVar("T")
# SkipJsonSchema is used to avoid generating invalid JSON schema in FastAPI
class Page(AbstractPage[T], Generic[T]): class Page(AbstractPage[T], Generic[T]):
results: Sequence[T] results: Sequence[T]
page: GreaterEqualOne | SkipJsonSchema[None] = None page: GreaterEqualOne | SkipJsonSchema[None] = None