Skip to content

chore: introduce PYL-E0119#35

Open
sourya-deepsource wants to merge 1 commit intomasterfrom
test-backwards-master-5
Open

chore: introduce PYL-E0119#35
sourya-deepsource wants to merge 1 commit intomasterfrom
test-backwards-master-5

Conversation

@sourya-deepsource
Copy link

No description provided.

Signed-off-by: Sourya Vatsyayan <sourya@deepsource.io>
@deepsource-development
Copy link

deepsource-development bot commented Jan 26, 2026

Here's the code health analysis summary for commits 9d1323c..55beda8. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Python LogoPython❌ Failure
❗ 2 occurences introduced
🎯 40 occurences resolved
View Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

Copy link

@deepsource-development deepsource-development bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DeepSource detected 2 newly introduced issue(s) in this pull request.


def cmethod(cls, something):
"""class method-to-be"""
print('value: {}').format(123)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Syntax error in cmethod function at line 29 with incorrect print usage

The function cmethod on line 29 contains a syntax error due to incorrect indentation and misuse of print and .format(). This causes immediate runtime failure preventing execution. Correct by properly indenting the print statement and using print('value: {}'.format(123)) or print(f'value: {123}').


def cmethod(cls, something):
"""class method-to-be"""
print('value: {}').format(123)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrectly calling .format() on the result of print() function

The print() function returns None. Calling .format() on None will raise an AttributeError at runtime. The call should be print('value: {}'.format(123)).

Copy link

@deepsource-development deepsource-development bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DeepSource detected 1 newly introduced issue(s) in this pull request.


def cmethod(cls, something):
"""class method-to-be"""
print('value: {}').format(123)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect indentation and string formatting in cmethod() at line 29 cause syntax error

The function cmethod() defined on line 29 contains an indentation error and incorrect usage of the print function with .format(). This leads to a Python syntax error preventing code execution. Fix by indenting the print line properly and rewriting as print('value: {}'.format(123)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments