Skip to content

Commit d8a9eb4

Browse files
authored
Merge pull request #15 from fbraza/fix/issue-8-comprehensive-type-hints
Fix type hint issues with TypedDict approach
2 parents 141b1c6 + 7b888e1 commit d8a9eb4

29 files changed

+830
-810
lines changed

.github/workflows/claude-code-review.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
# github.event.pull_request.user.login == 'external-contributor' ||
1818
# github.event.pull_request.user.login == 'new-developer' ||
1919
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
20-
20+
2121
runs-on: ubuntu-latest
2222
permissions:
2323
contents: read
2424
pull-requests: read
2525
issues: read
2626
id-token: write
27-
27+
2828
steps:
2929
- name: Checkout repository
3030
uses: actions/checkout@v4
@@ -39,7 +39,7 @@ jobs:
3939

4040
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
4141
# model: "claude-opus-4-20250514"
42-
42+
4343
# Direct prompt for automated review (no @claude mention needed)
4444
direct_prompt: |
4545
Please review this pull request and provide feedback on:
@@ -48,31 +48,30 @@ jobs:
4848
- Performance considerations
4949
- Security concerns
5050
- Test coverage
51-
51+
5252
Be constructive and helpful in your feedback.
5353
5454
# Optional: Use sticky comments to make Claude reuse the same comment on subsequent pushes to the same PR
5555
# use_sticky_comment: true
56-
56+
5757
# Optional: Customize review based on file types
5858
# direct_prompt: |
5959
# Review this PR focusing on:
6060
# - For TypeScript files: Type safety and proper interface usage
6161
# - For API endpoints: Security, input validation, and error handling
6262
# - For React components: Performance, accessibility, and best practices
6363
# - For tests: Coverage, edge cases, and test quality
64-
64+
6565
# Optional: Different prompts for different authors
6666
# direct_prompt: |
67-
# ${{ github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR' &&
67+
# ${{ github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR' &&
6868
# 'Welcome! Please review this PR from a first-time contributor. Be encouraging and provide detailed explanations for any suggestions.' ||
6969
# 'Please provide a thorough code review focusing on our coding standards and best practices.' }}
70-
70+
7171
# Optional: Add specific tools for running tests or linting
7272
# allowed_tools: "Bash(npm run test),Bash(npm run lint),Bash(npm run typecheck)"
73-
73+
7474
# Optional: Skip review for certain conditions
7575
# if: |
7676
# !contains(github.event.pull_request.title, '[skip-review]') &&
7777
# !contains(github.event.pull_request.title, '[WIP]')
78-

specs/coding_style.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,4 @@ When faced with coding choices, ask:
109109
5. **Does this follow our established conventions?**
110110
6. **Is this optimized for readability?**
111111

112-
The answer to all these questions should be "yes" for beautiful Python code.
112+
The answer to all these questions should be "yes" for beautiful Python code.
Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
{
2-
"metadata": {
3-
"patient_id": "P024-2024-024",
4-
"sex": "female",
5-
"timestamp": "2024-07-04T13:45:00Z",
6-
"test_date": "2024-07-04",
7-
"laboratory": "NHANES Reference Labs"
8-
},
9-
"raw_biomarkers": {
10-
"age_years": {
11-
"value": 50,
12-
"unit": "years"
2+
"metadata": {
3+
"patient_id": "P024-2024-024",
4+
"sex": "female",
5+
"timestamp": "2024-07-04T13:45:00Z",
6+
"test_date": "2024-07-04",
7+
"laboratory": "NHANES Reference Labs"
138
},
14-
"smoking_yes_no": {
15-
"value": true,
16-
"unit": "yes/no"
17-
},
18-
"systolic_blood_pressure_mmhg": {
19-
"value": 140,
20-
"unit": "mmHg"
21-
},
22-
"total_cholesterol_mmol_l": {
23-
"value": 6.3,
24-
"unit": "mmol/L"
25-
},
26-
"hdl_cholesterol_mmol_l": {
27-
"value": 1.4,
28-
"unit": "mmol/L"
29-
},
30-
"is_male_yes_no": {
31-
"value": false,
32-
"unit": "yes/no"
9+
"raw_biomarkers": {
10+
"age_years": {
11+
"value": 50,
12+
"unit": "years"
13+
},
14+
"smoking_yes_no": {
15+
"value": true,
16+
"unit": "yes/no"
17+
},
18+
"systolic_blood_pressure_mmhg": {
19+
"value": 140,
20+
"unit": "mmHg"
21+
},
22+
"total_cholesterol_mmol_l": {
23+
"value": 6.3,
24+
"unit": "mmol/L"
25+
},
26+
"hdl_cholesterol_mmol_l": {
27+
"value": 1.4,
28+
"unit": "mmol/L"
29+
},
30+
"is_male_yes_no": {
31+
"value": false,
32+
"unit": "yes/no"
33+
}
3334
}
34-
}
3535
}
Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
{
2-
"metadata": {
3-
"patient_id": "P024-2024-024",
4-
"sex": "male",
5-
"timestamp": "2024-07-04T13:45:00Z",
6-
"test_date": "2024-07-04",
7-
"laboratory": "NHANES Reference Labs"
8-
},
9-
"raw_biomarkers": {
10-
"age_years": {
11-
"value": 50,
12-
"unit": "years"
2+
"metadata": {
3+
"patient_id": "P024-2024-024",
4+
"sex": "male",
5+
"timestamp": "2024-07-04T13:45:00Z",
6+
"test_date": "2024-07-04",
7+
"laboratory": "NHANES Reference Labs"
138
},
14-
"smoking_yes_no": {
15-
"value": true,
16-
"unit": "yes/no"
17-
},
18-
"systolic_blood_pressure_mmhg": {
19-
"value": 140,
20-
"unit": "mmHg"
21-
},
22-
"total_cholesterol_mmol_l": {
23-
"value": 6.3,
24-
"unit": "mmol/L"
25-
},
26-
"hdl_cholesterol_mmol_l": {
27-
"value": 1.4,
28-
"unit": "mmol/L"
29-
},
30-
"is_male_yes_no": {
31-
"value": true,
32-
"unit": "yes/no"
9+
"raw_biomarkers": {
10+
"age_years": {
11+
"value": 50,
12+
"unit": "years"
13+
},
14+
"smoking_yes_no": {
15+
"value": true,
16+
"unit": "yes/no"
17+
},
18+
"systolic_blood_pressure_mmhg": {
19+
"value": 140,
20+
"unit": "mmHg"
21+
},
22+
"total_cholesterol_mmol_l": {
23+
"value": 6.3,
24+
"unit": "mmol/L"
25+
},
26+
"hdl_cholesterol_mmol_l": {
27+
"value": 1.4,
28+
"unit": "mmol/L"
29+
},
30+
"is_male_yes_no": {
31+
"value": true,
32+
"unit": "yes/no"
33+
}
3334
}
34-
}
3535
}
Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
{
2-
"metadata": {
3-
"patient_id": "P027-2024-027",
4-
"sex": "female",
5-
"timestamp": "2024-07-04T14:00:00Z",
6-
"test_date": "2024-07-04",
7-
"laboratory": "NHANES Reference Labs"
8-
},
9-
"raw_biomarkers": {
10-
"age_years": {
11-
"value": 55,
12-
"unit": "years"
2+
"metadata": {
3+
"patient_id": "P027-2024-027",
4+
"sex": "female",
5+
"timestamp": "2024-07-04T14:00:00Z",
6+
"test_date": "2024-07-04",
7+
"laboratory": "NHANES Reference Labs"
138
},
14-
"smoking_yes_no": {
15-
"value": false,
16-
"unit": "yes/no"
17-
},
18-
"systolic_blood_pressure_mmhg": {
19-
"value": 125,
20-
"unit": "mmHg"
21-
},
22-
"total_cholesterol_mmol_l": {
23-
"value": 5.2,
24-
"unit": "mmol/L"
25-
},
26-
"hdl_cholesterol_mmol_l": {
27-
"value": 1.6,
28-
"unit": "mmol/L"
29-
},
30-
"is_male_yes_no": {
31-
"value": false,
32-
"unit": "yes/no"
9+
"raw_biomarkers": {
10+
"age_years": {
11+
"value": 55,
12+
"unit": "years"
13+
},
14+
"smoking_yes_no": {
15+
"value": false,
16+
"unit": "yes/no"
17+
},
18+
"systolic_blood_pressure_mmhg": {
19+
"value": 125,
20+
"unit": "mmHg"
21+
},
22+
"total_cholesterol_mmol_l": {
23+
"value": 5.2,
24+
"unit": "mmol/L"
25+
},
26+
"hdl_cholesterol_mmol_l": {
27+
"value": 1.6,
28+
"unit": "mmol/L"
29+
},
30+
"is_male_yes_no": {
31+
"value": false,
32+
"unit": "yes/no"
33+
}
3334
}
34-
}
35-
}
35+
}
Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
{
2-
"metadata": {
3-
"patient_id": "P028-2024-028",
4-
"sex": "male",
5-
"timestamp": "2024-07-04T14:15:00Z",
6-
"test_date": "2024-07-04",
7-
"laboratory": "NHANES Reference Labs"
8-
},
9-
"raw_biomarkers": {
10-
"age_years": {
11-
"value": 45,
12-
"unit": "years"
2+
"metadata": {
3+
"patient_id": "P028-2024-028",
4+
"sex": "male",
5+
"timestamp": "2024-07-04T14:15:00Z",
6+
"test_date": "2024-07-04",
7+
"laboratory": "NHANES Reference Labs"
138
},
14-
"smoking_yes_no": {
15-
"value": false,
16-
"unit": "yes/no"
17-
},
18-
"systolic_blood_pressure_mmhg": {
19-
"value": 130,
20-
"unit": "mmHg"
21-
},
22-
"total_cholesterol_mmol_l": {
23-
"value": 5.8,
24-
"unit": "mmol/L"
25-
},
26-
"hdl_cholesterol_mmol_l": {
27-
"value": 1.3,
28-
"unit": "mmol/L"
29-
},
30-
"is_male_yes_no": {
31-
"value": true,
32-
"unit": "yes/no"
9+
"raw_biomarkers": {
10+
"age_years": {
11+
"value": 45,
12+
"unit": "years"
13+
},
14+
"smoking_yes_no": {
15+
"value": false,
16+
"unit": "yes/no"
17+
},
18+
"systolic_blood_pressure_mmhg": {
19+
"value": 130,
20+
"unit": "mmHg"
21+
},
22+
"total_cholesterol_mmol_l": {
23+
"value": 5.8,
24+
"unit": "mmol/L"
25+
},
26+
"hdl_cholesterol_mmol_l": {
27+
"value": 1.3,
28+
"unit": "mmol/L"
29+
},
30+
"is_male_yes_no": {
31+
"value": true,
32+
"unit": "yes/no"
33+
}
3334
}
34-
}
35-
}
35+
}

0 commit comments

Comments
 (0)