mirror of
https://github.com/creyD/creyPY.git
synced 2026-04-12 19:30:30 +02:00
Minor Changes
This commit is contained in:
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
@@ -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
|
||||||
|
|||||||
3
.github/workflows/publish.yml
vendored
3
.github/workflows/publish.yml
vendored
@@ -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
|
||||||
|
|||||||
2
LICENSE
2
LICENSE
@@ -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
|
||||||
|
|||||||
@@ -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/* ```
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user