Skip to content

Commit 57d77d2

Browse files
committed
;bug: fixes the issue #13 "pyright struggles with default position args".
1 parent 0eea138 commit 57d77d2

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

HISTORY.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ History
44
1.1.4 (unreleased)
55
------------------
66

7-
- Nothing changed yet.
7+
- Fixes the issue #13 "pyright struggles with default position args".
88

99

1010
1.1.3 (2025-07-10)

fhir_core/fhirabstractmodel.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ class FHIRAbstractModel(BaseModel):
5454
__resource_type__: str = "__resource_type__"
5555

5656
fhir_comments: typing.Union[str, typing.List[str]] | None = Field(
57-
None, alias="fhir_comments", json_schema_extra={"element_property": False}
57+
default=None,
58+
alias="fhir_comments",
59+
json_schema_extra={"element_property": False},
5860
)
5961

6062
def __init__(self, /, **data: typing.Any) -> None: # type: ignore

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ universal = 1
33

44
[metadata]
55
name = "fhir_core"
6-
version = "1.1.1"
6+
version = "1.1.4"
77
license-files="LICENSE"
88
long_description_content_type=text/x-rst
99
[aliases]

0 commit comments

Comments
 (0)