Skip to content

Commit

Permalink
(PC-33026)[API] feat: Better typing for YearlyAggregatedRevenueModel …
Browse files Browse the repository at this point in the history
…empty state. Set explicit empty dict instead of any
  • Loading branch information
pcharlet-pass committed Nov 22, 2024
1 parent e673a5a commit a22ddb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Config:


class YearlyAggregatedRevenueModel(pydantic_v1.BaseModel):
income_by_year: dict[str, AggregatedRevenue | dict]
income_by_year: dict[str, AggregatedRevenue | dict[None, None]]

class Config:
extra = "forbid"
Expand Down
2 changes: 1 addition & 1 deletion pro/src/apiClient/v1/models/StatisticsModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
/* eslint-disable */
import type { AggregatedRevenue } from './AggregatedRevenue';
export type StatisticsModel = {
incomeByYear: Record<string, (AggregatedRevenue | Record<string, any>)>;
incomeByYear: Record<string, (AggregatedRevenue | Record<string, null>)>;
};

0 comments on commit a22ddb8

Please sign in to comment.