Release/v0.4.1 #1
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: RuJect/snakia#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "release/v0.4.1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Changelog:
condtorxget_fieldstoFieldAsyncBindable&BindableClassProperty__slots__toProperty@ -5,1 +6,4 @@class Readonly[T](Property[T]):"""🚫 Codacy found a high ErrorProne issue: invalid syntax (F999)
The issue arises from the use of generics in the class definition. The syntax
Readonly[T](Property[T])is incorrect in Python, as the use of generics requires theGenericbase class from thetypingmodule. To fix this, you need to inherit fromGeneric[T]in addition toProperty[T].Here's the code suggestion to fix the issue:
This comment was generated by an experimental AI tool.
@ -0,0 +1,13 @@from typing import Callabledef cond[**P, T, F](🚫 Codacy found a high ErrorProne issue: expected '(' (F999)
The issue reported by the Prospector linter is due to the incorrect syntax used for the type parameters in the function definition. In Python's type hinting, you cannot use square brackets
[]for defining type variables; instead, you should use parentheses()with theTypeVarfunction from thetypingmodule.To fix the issue, you need to change the definition of the
condfunction to useTypeVarfor the type parameters. Here's the single line change needed:This comment was generated by an experimental AI tool.