Skip to content

Commit

Permalink
F
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Oct 26, 2023
1 parent 4052621 commit 4f22593
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ repos:
hooks:
- id: mypy
additional_dependencies:
- pydantic==1.10.10
- pydantic==1.10.13
- sqlalchemy
- types-PyYAML
- types-cachetools
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ select = [
"B", # flake8-bugbear
"I", # isort
"PLE", # pylint errors
"UP", # pyUpgrade
# "UP", # pyUpgrade
"FLY", # flynt
]
ignore = ["B905", "B008", "B006"]
Expand Down
2 changes: 1 addition & 1 deletion src/diracx/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async def logout():


@app.callback()
def callback(output_format: str | None = None):
def callback(output_format: Optional[str] = None):
if output_format is not None:
os.environ["DIRACX_OUTPUT_FORMAT"] = output_format

Expand Down
6 changes: 3 additions & 3 deletions src/diracx/core/config/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import os
from datetime import datetime
from typing import Any
from typing import Any, Optional

from pydantic import BaseModel as _BaseModel
from pydantic import EmailStr, Field, PrivateAttr, root_validator
Expand Down Expand Up @@ -51,10 +51,10 @@ class GroupConfig(BaseModel):
AutoUploadProxy: bool = False
JobShare: int = 1000
Properties: set[SecurityProperty]
Quota: int | None
Quota: Optional[int]
Users: set[str]
AllowBackgroundTQs: bool = False
VOMSRole: str | None
VOMSRole: Optional[str]
AutoSyncVOMS: bool = False


Expand Down

0 comments on commit 4f22593

Please sign in to comment.