Skip to content

Commit

Permalink
Run pyupgrade --py310-plus
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Nov 8, 2023
1 parent 13b8754 commit 4d6d5d2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/solidation/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
import os
from pathlib import Path
from random import sample
from re import Pattern
from statistics import quantiles
from typing import TYPE_CHECKING, Any, List, Pattern, Set, Union
from typing import TYPE_CHECKING, Any
from urllib.parse import quote
import click
from click_loglevel import LogLevel
Expand Down Expand Up @@ -37,7 +38,7 @@ class RepoSpec(BaseModel):

class OrgSpec(BaseModel):
name: GHUser
fetch_members: Union[StrictBool, Pattern] = False
fetch_members: StrictBool | Pattern = False
member_activity_only: bool = False

def member_fetched(self, user: str) -> bool:
Expand All @@ -50,9 +51,9 @@ def member_fetched(self, user: str) -> bool:
class Configuration(BaseModel):
project: str = "Project"
recent_days: int = Field(default=7, ge=1)
organizations: List[Union[GHUser, OrgSpec]] = Field(default_factory=list)
repositories: List[Union[GHRepo, RepoSpec]] = Field(default_factory=list)
members: Set[GHUser] = Field(default_factory=set)
organizations: list[GHUser | OrgSpec] = Field(default_factory=list)
repositories: list[GHRepo | RepoSpec] = Field(default_factory=list)
members: set[GHUser] = Field(default_factory=set)
num_oldest_prs: int = Field(default=10, ge=1)
max_random_issues: int = Field(default=5, ge=1)

Expand Down

0 comments on commit 4d6d5d2

Please sign in to comment.