Repository navigation
Conversation
ty 0.0.102 renamed four rules in the [tool.ty] ignore list, so every run emitted renamed-rule warnings. Use the current names (invalid-explicit-return, missing-attribute, import-not-found) and drop not-callable (formerly call-non-callable) from the list after fixing its only diagnostic: DenseLayer.activation could be None when called, so the sigmoid default now happens in __init__ and the parameters are typed. Part of TheAlgorithms#15187 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Describe your change
Part of #15187 (gradual
tybaseline).ty 0.0.102 renamed four of the rules in the
[tool.ty]ignore list, so every runemitted a
renamed-rulewarning for them. This PR:invalid-return-type→invalid-explicit-return,unresolved-attribute→missing-attribute,unresolved-import→import-not-found.not-callable(formerlycall-non-callable) after fixing its onlydiagnostic:
DenseLayer.activationcould beNonewhen called inforward_propagation. Thesigmoiddefault now happens in__init__(it usedto happen in
initializer()), and the parameters are type-hinted. Behavior isunchanged.
ty check --exclude-scriptsgoes from 51 to 47 diagnostics, with nonot-callableor
renamed-rulediagnostics left.Checklist
The type-hint and doctest boxes are unchecked because the rest of this file predates
them; this PR keeps to the
tyfix (the template asks not to mix code and testchanges). No "Fixes" keyword because #15187 is a tracking issue that should stay open.
🤖 Generated with Claude Code