|
7 | 7 | # pyre-strict
|
8 | 8 | from typing import Optional, Set, Type
|
9 | 9 |
|
| 10 | +# pyre-fixme[21]: Could not find module `fbpcs.private_computation.entity.infra_config`. |
10 | 11 | from fbpcs.private_computation.entity.infra_config import PrivateComputationGameType
|
| 12 | + |
| 13 | +# pyre-fixme[21]: Could not find module `fbpcs.private_computation.entity.pcs_feature`. |
11 | 14 | from fbpcs.private_computation.entity.pcs_feature import PCSFeature
|
| 15 | + |
| 16 | +# pyre-fixme[21]: Could not find module |
| 17 | +# `fbpcs.private_computation.stage_flows.private_computation_base_stage_flow`. |
12 | 18 | from fbpcs.private_computation.stage_flows.private_computation_base_stage_flow import (
|
13 | 19 | PrivateComputationBaseStageFlow,
|
14 | 20 | )
|
| 21 | + |
| 22 | +# pyre-fixme[21]: Could not find module `fbpcs.private_computation.stage_flows.privat... |
15 | 23 | from fbpcs.private_computation.stage_flows.private_computation_mr_pid_pcf2_lift_stage_flow import (
|
16 | 24 | PrivateComputationMrPidPCF2LiftStageFlow,
|
17 | 25 | )
|
| 26 | + |
| 27 | +# pyre-fixme[21]: Could not find module |
| 28 | +# `fbpcs.private_computation.stage_flows.private_computation_mr_stage_flow`. |
18 | 29 | from fbpcs.private_computation.stage_flows.private_computation_mr_stage_flow import (
|
19 | 30 | PrivateComputationMRStageFlow,
|
20 | 31 | )
|
| 32 | + |
| 33 | +# pyre-fixme[21]: Could not find module |
| 34 | +# `fbpcs.private_computation.stage_flows.private_computation_pcf2_lift_udp_stage_flow`. |
21 | 35 | from fbpcs.private_computation.stage_flows.private_computation_pcf2_lift_udp_stage_flow import (
|
22 | 36 | PrivateComputationPCF2LiftUDPStageFlow,
|
23 | 37 | )
|
| 38 | + |
| 39 | +# pyre-fixme[21]: Could not find module |
| 40 | +# `fbpcs.private_computation.stage_flows.private_computation_pcf2_stage_flow`. |
24 | 41 | from fbpcs.private_computation.stage_flows.private_computation_pcf2_stage_flow import (
|
25 | 42 | PrivateComputationPCF2StageFlow,
|
26 | 43 | )
|
| 44 | + |
| 45 | +# pyre-fixme[21]: Could not find module |
| 46 | +# `fbpcs.private_computation.stage_flows.private_computation_stage_flow`. |
27 | 47 | from fbpcs.private_computation.stage_flows.private_computation_stage_flow import (
|
28 | 48 | PrivateComputationStageFlow,
|
29 | 49 | )
|
30 | 50 | from fbpcs.utils.optional import unwrap_or_default
|
31 | 51 |
|
32 | 52 |
|
33 | 53 | def get_stage_flow(
|
| 54 | + # pyre-fixme[11]: Annotation `PrivateComputationGameType` is not defined as a type. |
34 | 55 | game_type: PrivateComputationGameType,
|
| 56 | + # pyre-fixme[11]: Annotation `PCSFeature` is not defined as a type. |
35 | 57 | pcs_feature_enums: Set[PCSFeature],
|
| 58 | + # pyre-fixme[11]: Annotation `PrivateComputationBaseStageFlow` is not defined as |
| 59 | + # a type. |
36 | 60 | stage_flow_cls: Optional[Type[PrivateComputationBaseStageFlow]] = None,
|
37 | 61 | ) -> Type[PrivateComputationBaseStageFlow]:
|
38 | 62 | selected_stage_flow_cls = unwrap_or_default(
|
39 | 63 | optional=stage_flow_cls,
|
40 | 64 | default=(
|
| 65 | + # pyre-fixme[16]: Module `private_computation` has no attribute |
| 66 | + # `stage_flows`. |
41 | 67 | PrivateComputationPCF2StageFlow
|
| 68 | + # pyre-fixme[16]: Module `entity` has no attribute `infra_config`. |
42 | 69 | if game_type is PrivateComputationGameType.ATTRIBUTION
|
| 70 | + # pyre-fixme[16]: Module `private_computation` has no attribute |
| 71 | + # `stage_flows`. |
43 | 72 | else PrivateComputationStageFlow
|
44 | 73 | ),
|
45 | 74 | )
|
46 | 75 |
|
47 | 76 | # warning, enabled feature gating will override stage flow, Please contact PSI team to have a similar adoption
|
48 | 77 | if PCSFeature.PRIVATE_ATTRIBUTION_MR_PID in pcs_feature_enums:
|
49 | 78 | selected_stage_flow_cls = (
|
| 79 | + # pyre-fixme[16]: Module `private_computation` has no attribute |
| 80 | + # `stage_flows`. |
50 | 81 | PrivateComputationMRStageFlow
|
| 82 | + # pyre-fixme[16]: Module `entity` has no attribute `infra_config`. |
51 | 83 | if game_type is PrivateComputationGameType.ATTRIBUTION
|
| 84 | + # pyre-fixme[16]: Module `private_computation` has no attribute |
| 85 | + # `stage_flows`. |
52 | 86 | else PrivateComputationMrPidPCF2LiftStageFlow
|
53 | 87 | )
|
54 | 88 | if PCSFeature.PRIVATE_LIFT_UNIFIED_DATA_PROCESS in pcs_feature_enums:
|
55 | 89 | selected_stage_flow_cls = (
|
| 90 | + # pyre-fixme[16]: Module `private_computation` has no attribute |
| 91 | + # `stage_flows`. |
56 | 92 | PrivateComputationPCF2LiftUDPStageFlow
|
| 93 | + # pyre-fixme[16]: Module `entity` has no attribute `infra_config`. |
57 | 94 | if game_type is PrivateComputationGameType.LIFT
|
58 | 95 | else selected_stage_flow_cls
|
59 | 96 | )
|
|
0 commit comments