Repository navigation
build(types): mypy en io/ con anotaciones completas - #193
Merged
Merged
Conversation
Tercera etapa de los tipos: io/ se suma a la corrida de mypy de la CI (la GUI queda fuera). Ningún resultado cambia. - csi_projects: _loads recibe Protocols para apoyos y extremos de viga, así la importación de corte lo reutiliza con argumentos tipados. - csi: restricciones como tupla de 6; columnas obligatorias de ETABS comprobadas una por una; _cell salta una columna que la tabla no tiene. - Los métodos *_model de Project devuelven su tipo del motor; los modelos de empalme, corte y momento toman los campos obligatorios con required() o con una comprobación explícita. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014sGf7Ft5MPnvkqUgRxRwbg Signed-off-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resumen
Etapa I.3 del plan de calidad, la última de mypy:
src/openconex/iose suma a[tool.mypy] filesy adisallow_untyped_defs.python -m mypyrevisa 62 archivos sin errores. La GUI queda fuera.Solo cambian anotaciones y comprobaciones de tipos. Ningún resultado cambia:
csi_projects:_loadsrecibe dosProtocol(_Loaded,_Imported) en vez deSupportyCsiImport, así la importación de corte (BeamEndyCsiBeamImport) la reutiliza con argumentos tipados.column_inputy_joint_projectsllevan sus tipos.csi:Restraints)._all_columns)._cellsalta una columna que la tabla no tiene. Antes, una exportación de ETABS sinStepTypeoCaseTypefallaba conAttributeError; ahora esos campos quedan vacíos, como ya hacía el código conor "".Project:shear_model(),moment_model()ysplice_model()devuelven su tipo del motor (importado conTYPE_CHECKING).required()o con unif … is None: raise. mypy no resuelverequiredsobre uniones constr, comostr | WSectionInput | None; esto queda anotado en 02-convenciones.missing()y la validación ya garantizaban esos campos.table_import: usarequire_base_plate().Validación
python -m mypy: sin errores en 62 archivos.ruff check src tests: sin errores.python -m pytest: 1163 pruebas pasan, incluida la de caracterización deexamples/.Lista de verificación
docs/tecnico/02-convenciones.md(Tipos).-s(DCO).Generated by Claude Code