-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c235da1
commit 9df0475
Showing
8 changed files
with
92 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
from __future__ import annotations | ||
|
||
from collections.abc import Mapping | ||
from typing import Protocol | ||
|
||
from openfisca_core import types as t | ||
|
||
# Entities | ||
|
||
|
||
class SingleEntity(t.SingleEntity, Protocol): | ||
... | ||
|
||
|
||
class GroupEntity(t.GroupEntity, Protocol): | ||
... | ||
|
||
|
||
class Role(t.Role, Protocol): | ||
... | ||
|
||
|
||
# Populations | ||
|
||
|
||
class SinglePopulation(t.SinglePopulation, Protocol): | ||
@property | ||
def entity(self) -> t.SingleEntity: | ||
... | ||
|
||
@property | ||
def simulation(self) -> Simulation: | ||
... | ||
|
||
|
||
class GroupPopulation(t.GroupPopulation, Protocol): | ||
@property | ||
def entity(self) -> t.GroupEntity: | ||
... | ||
|
||
@property | ||
def simulation(self) -> Simulation: | ||
... | ||
|
||
|
||
# Simulations | ||
|
||
|
||
class Simulation(t.Simulation, Protocol): | ||
@property | ||
def populations(self) -> Mapping[str, SinglePopulation | GroupPopulation]: | ||
... |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters