Skip to content

Bump pyright from 1.1.396 to 1.1.400 #545

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ docs = [
]
lint = [
"pre-commit==4.2.0",
"pyright==1.1.396",
"pyright==1.1.400",
]
test = [
"pytest==8.3.5",
Expand Down
14 changes: 12 additions & 2 deletions src/sectionproperties/analysis/section.py
Original file line number Diff line number Diff line change
Expand Up @@ -3416,6 +3416,16 @@ def get_stress_at_points(
return stress_pts


def tri6_list() -> list[fea.Tri6]:
"""Helper function -> creates an empty list of ``Tri6`` elements."""
return []


def int_list() -> list[int]:
"""Helper function -> creates an empty list of ``int``s."""
return []


@dataclass
class MaterialGroup:
"""Class for storing elements of different materials.
Expand All @@ -3439,8 +3449,8 @@ class MaterialGroup:
num_nodes: int
material: pre.Material
stress_result: sp_stress_post.StressResult = field(init=False)
elements: list[fea.Tri6] = field(init=False, default_factory=list)
el_ids: list[int] = field(init=False, default_factory=list)
elements: list[fea.Tri6] = field(init=False, default_factory=tri6_list)
el_ids: list[int] = field(init=False, default_factory=int_list)

def __post_init__(self) -> None:
"""Allocates the stress_result parameter."""
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.