From 063ffbc3b98a3bf6773901cf6715961b68d318de Mon Sep 17 00:00:00 2001 From: Morten Engen Date: Wed, 6 May 2026 22:01:07 +0200 Subject: [PATCH] Improve type annotation for shell section --- structuralcodes/sections/_shell_section.py | 12 +++++++++--- .../section_integrators/_shell_integrator.py | 2 ++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/structuralcodes/sections/_shell_section.py b/structuralcodes/sections/_shell_section.py index 1bbb7102..4a5c084d 100644 --- a/structuralcodes/sections/_shell_section.py +++ b/structuralcodes/sections/_shell_section.py @@ -1,3 +1,7 @@ +"""Implementation of the shell section class.""" + +from __future__ import annotations # To have clean hints of ArrayLike in docs + import typing as t import numpy as np @@ -10,14 +14,16 @@ class ShellSection(Section): - """This is the implementation of the shell class section. + """This is the implementation of the shell section class. Attributes: - geometry ShellGeometry: The geometry of - the section. + geometry ShellGeometry: The geometry of the section. name (str): The name of the section. """ + geometry: ShellGeometry + section_calculator: ShellSectionCalculator + def __init__( self, geometry: ShellGeometry, diff --git a/structuralcodes/sections/section_integrators/_shell_integrator.py b/structuralcodes/sections/section_integrators/_shell_integrator.py index 2fa92992..b60b096f 100644 --- a/structuralcodes/sections/section_integrators/_shell_integrator.py +++ b/structuralcodes/sections/section_integrators/_shell_integrator.py @@ -2,6 +2,8 @@ discretization. """ +from __future__ import annotations # To have clean hints of ArrayLike in docs + import typing as t import numpy as np