René's URL Explorer Experiment


Title: Fixes for bugs found by pylint by roryyorke · Pull Request #795 · python-control/python-control · GitHub

Open Graph Title: Fixes for bugs found by pylint by roryyorke · Pull Request #795 · python-control/python-control

X Title: Fixes for bugs found by pylint by roryyorke · Pull Request #795 · python-control/python-control

Description: I found these with pylint. See also rory/pylint for two pylint-specific commits if you want to run this yourself; I used pylint -E control to run pylint, with -E disabling all but the most serious of warnings. On rory/pylint, pylint still reports all of these as errors; some are false positives (e.g., "invalid-unary-operand-type"), and others are stylistic (e.g., "self as first argument"), but I haven't investigated every single one. We could consider incorporating pylint, but we'd obviously have to do more work configuring it. pylint -E control ************* Module control.iosys control/iosys.py:153:4: E0213: Method should have "self" as first argument (no-self-argument) control/iosys.py:203:4: E0213: Method should have "self" as first argument (no-self-argument) control/iosys.py:222:4: E0213: Method should have "self" as first argument (no-self-argument) control/iosys.py:260:4: E0213: Method should have "self" as first argument (no-self-argument) control/iosys.py:279:4: E0213: Method should have "self" as first argument (no-self-argument) control/iosys.py:317:4: E0213: Method should have "self" as first argument (no-self-argument) control/iosys.py:336:4: E0213: Method should have "self" as first argument (no-self-argument) control/iosys.py:809:4: E0213: Method should have "self" as first argument (no-self-argument) ************* Module control.mateqn control/mateqn.py:182:51: E1130: bad operand type for unary -: NoneType (invalid-unary-operand-type) control/mateqn.py:185:31: E1130: bad operand type for unary -: NoneType (invalid-unary-operand-type) ************* Module control.sisotool control/sisotool.py:305:22: E1130: bad operand type for unary -: NoneType (invalid-unary-operand-type) control/sisotool.py:305:22: E1130: bad operand type for unary -: NoneType (invalid-unary-operand-type) ************* Module control.passivity control/passivity.py:150:24: E1130: bad operand type for unary -: list (invalid-unary-operand-type) control/passivity.py:150:24: E1130: bad operand type for unary -: list (invalid-unary-operand-type) control/passivity.py:150:24: E1130: bad operand type for unary -: list (invalid-unary-operand-type) control/passivity.py:152:24: E1130: bad operand type for unary -: list (invalid-unary-operand-type) control/passivity.py:152:24: E1130: bad operand type for unary -: list (invalid-unary-operand-type) control/passivity.py:152:24: E1130: bad operand type for unary -: list (invalid-unary-operand-type) control/passivity.py:154:24: E1130: bad operand type for unary -: list (invalid-unary-operand-type) control/passivity.py:154:24: E1130: bad operand type for unary -: list (invalid-unary-operand-type) control/passivity.py:154:24: E1130: bad operand type for unary -: list (invalid-unary-operand-type) ************* Module control.descfcn control/descfcn.py:388:58: E1130: bad operand type for unary -: NoneType (invalid-unary-operand-type) ************* Module control.statefbk control/statefbk.py:768:27: E1130: bad operand type for unary -: NoneType (invalid-unary-operand-type) ************* Module control.freqplot control/freqplot.py:1043:27: E1130: bad operand type for unary -: MaskedArray (invalid-unary-operand-type) control/freqplot.py:1046:20: E1130: bad operand type for unary -: MaskedArray (invalid-unary-operand-type) ************* Module control.lti control/lti.py:119:16: E1101: Instance of 'LTI' has no 'poles' member; maybe 'pole'? (no-member) control/lti.py:188:19: E1101: Instance of 'LTI' has no '__call__' member (no-member) control/lti.py:198:19: E1102: self is not callable (not-callable) control/lti.py:217:15: E1101: Instance of 'LTI' has no 'poles' member; maybe 'pole'? (no-member) control/lti.py:222:15: E1101: Instance of 'LTI' has no 'zeros' member; maybe 'zero'? (no-member) ************* Module control.optimal control/optimal.py:307:40: E1126: Sequence index is not an int, slice, or instance with __index__ (invalid-sequence-index) control/optimal.py:324:49: E1126: Sequence index is not an int, slice, or instance with __index__ (invalid-sequence-index) control/optimal.py:329:39: E1126: Sequence index is not an int, slice, or instance with __index__ (invalid-sequence-index) control/optimal.py:428:50: E1126: Sequence index is not an int, slice, or instance with __index__ (invalid-sequence-index) control/optimal.py:430:37: E1126: Sequence index is not an int, slice, or instance with __index__ (invalid-sequence-index) control/optimal.py:441:46: E1126: Sequence index is not an int, slice, or instance with __index__ (invalid-sequence-index) control/optimal.py:443:33: E1126: Sequence index is not an int, slice, or instance with __index__ (invalid-sequence-index) control/optimal.py:513:50: E1126: Sequence index is not an int, slice, or instance with __index__ (invalid-sequence-index) control/optimal.py:515:37: E1126: Sequence index is not an int, slice, or instance with __index__ (invalid-sequence-index) control/optimal.py:526:46: E1126: Sequence index is not an int, slice, or instance with __index__ (invalid-sequence-index) control/optimal.py:528:33: E1126: Sequence index is not an int, slice, or instance with __index__ (invalid-sequence-index) ************* Module control.exception control/exception.py:94:12: E0401: Unable to import 'cvxopt' (import-error) ************* Module control.tests.matlab_test control/tests/matlab_test.py:366:15: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/matlab_test.py:367:15: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/matlab_test.py:368:15: E1101: Instance of 'tuple' has no 'shape' member (no-member) ************* Module control.tests.xferfcn_test control/tests/xferfcn_test.py:448:39: E1101: Instance of 'TransferFunction' has no 'evalfr' member (no-member) ************* Module control.tests.iosys_test control/tests/iosys_test.py:533:52: E1130: bad operand type for unary -: tuple (invalid-unary-operand-type) control/tests/iosys_test.py:1796:35: E1126: Sequence index is not an int, slice, or instance with __index__ (invalid-sequence-index) ************* Module control.tests.optimal_test control/tests/optimal_test.py:174:8: E1126: Sequence index is not an int, slice, or instance with __index__ (invalid-sequence-index) control/tests/optimal_test.py:619:12: E1126: Sequence index is not an int, slice, or instance with __index__ (invalid-sequence-index) control/tests/optimal_test.py:620:12: E1126: Sequence index is not an int, slice, or instance with __index__ (invalid-sequence-index) control/tests/optimal_test.py:621:11: E1126: Sequence index is not an int, slice, or instance with __index__ (invalid-sequence-index) ************* Module control.tests.matlab2_test control/tests/matlab2_test.py:142:16: E1126: Sequence index is not an int, slice, or instance with __index__ (invalid-sequence-index) control/tests/matlab2_test.py:172:16: E1126: Sequence index is not an int, slice, or instance with __index__ (invalid-sequence-index) control/tests/matlab2_test.py:267:8: E1101: Instance of 'TestControlMatlab' has no 'assertRaises' member (no-member) control/tests/matlab2_test.py:272:8: E1101: Instance of 'TestControlMatlab' has no 'assertRaises' member (no-member) control/tests/matlab2_test.py:325:8: E1101: Instance of 'TestControlMatlab' has no 'assertRaises' member (no-member) control/tests/matlab2_test.py:325:38: E1123: Unexpected keyword argument 'x0' in function call (unexpected-keyword-arg) control/tests/matlab2_test.py:330:8: E1101: Instance of 'TestControlMatlab' has no 'assertRaises' member (no-member) control/tests/matlab2_test.py:330:37: E1123: Unexpected keyword argument 'x0' in function call (unexpected-keyword-arg) control/tests/matlab2_test.py:333:8: E1101: Instance of 'TestControlMatlab' has no 'assertRaises' member (no-member) control/tests/matlab2_test.py:333:38: E1123: Unexpected keyword argument 'x0' in function call (unexpected-keyword-arg) control/tests/matlab2_test.py:335:8: E1101: Instance of 'TestControlMatlab' has no 'assertRaises' member (no-member) control/tests/matlab2_test.py:335:38: E1123: Unexpected keyword argument 'x0' in function call (unexpected-keyword-arg) ************* Module control.tests.robust_test control/tests/robust_test.py:86:31: E1130: bad operand type for unary -: list (invalid-unary-operand-type) control/tests/robust_test.py:88:31: E1130: bad operand type for unary -: list (invalid-unary-operand-type) control/tests/robust_test.py:105:31: E1130: bad operand type for unary -: list (invalid-unary-operand-type) control/tests/robust_test.py:122:31: E1130: bad operand type for unary -: list (invalid-unary-operand-type) control/tests/robust_test.py:143:31: E1130: bad operand type for unary -: list (invalid-unary-operand-type) control/tests/robust_test.py:149:31: E1130: bad operand type for unary -: list (invalid-unary-operand-type) control/tests/robust_test.py:173:31: E1130: bad operand type for unary -: list (invalid-unary-operand-type) control/tests/robust_test.py:174:31: E1130: bad operand type for unary -: list (invalid-unary-operand-type) control/tests/robust_test.py:175:31: E1130: bad operand type for unary -: list (invalid-unary-operand-type) control/tests/robust_test.py:176:31: E1130: bad operand type for unary -: list (invalid-unary-operand-type) control/tests/robust_test.py:288:31: E1130: bad operand type for unary -: list (invalid-unary-operand-type) control/tests/robust_test.py:289:31: E1130: bad operand type for unary -: list (invalid-unary-operand-type) control/tests/robust_test.py:290:31: E1130: bad operand type for unary -: list (invalid-unary-operand-type) control/tests/robust_test.py:291:31: E1130: bad operand type for unary -: list (invalid-unary-operand-type) ************* Module control.tests.timeresp_test control/tests/timeresp_test.py:355:38: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:355:48: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:356:38: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:356:51: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:421:36: E1126: Sequence index is not an int, slice, or instance with __index__ (invalid-sequence-index) control/tests/timeresp_test.py:521:45: E1126: Sequence index is not an int, slice, or instance with __index__ (invalid-sequence-index) control/tests/timeresp_test.py:923:19: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:924:19: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:924:36: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:926:19: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:926:33: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:976:15: E1101: Instance of 'tuple' has no 'ndim' member (no-member) control/tests/timeresp_test.py:977:15: E1101: Instance of 'tuple' has no 'ndim' member (no-member) control/tests/timeresp_test.py:978:15: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:978:26: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:1022:23: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:1024:23: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:1035:23: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:1037:23: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:1047:19: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:1057:19: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:1076:19: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:1093:19: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:1098:19: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:1142:15: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:1167:15: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:1168:15: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:1169:15: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:1174:15: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:1175:15: E1101: Instance of 'tuple' has no 'shape' member (no-member) control/tests/timeresp_test.py:1176:15: E1101: Instance of 'tuple' has no 'shape' member (no-member) ************* Module control.tests.input_element_int_test control/tests/input_element_int_test.py:66:40: E1101: Instance of 'finfo' has no 'epsneg' member (no-member) ************* Module control.flatsys.flatsys control/flatsys/flatsys.py:174:4: E0202: An attribute defined in control.flatsys.flatsys line 163 hides this method (method-hidden) control/flatsys/flatsys.py:203:4: E0202: An attribute defined in control.flatsys.flatsys line 164 hides this method (method-hidden)

Open Graph Description: I found these with pylint. See also rory/pylint for two pylint-specific commits if you want to run this yourself; I used pylint -E control to run pylint, with -E disabling all but the most serious ...

X Description: I found these with pylint. See also rory/pylint for two pylint-specific commits if you want to run this yourself; I used pylint -E control to run pylint, with -E disabling all but the most serious ...

Opengraph URL: https://github.com/python-control/python-control/pull/795

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/checks(.:format)
route-controllerpull_requests
route-actionchecks
fetch-noncev2:92c07dad-d5ee-7fab-96e3-68d206e9cee1
current-catalog-service-hash87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a
request-idE1BE:3C89CF:13DD21A:1C4E984:697A38CE
html-safe-nonce3785e2fc33e32a36e29a5a4bdb788acdd5a0c091cc22107bdb0096e5570b3e93
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUJFOjNDODlDRjoxM0REMjFBOjFDNEU5ODQ6Njk3QTM4Q0UiLCJ2aXNpdG9yX2lkIjoiODk2OTQxNDYzMzkxMTM2Nzg4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7c9736078a049e236f86081f630791387aa253bce9036ef76dd5911e307401e3
hovercard-subject-tagpull_request:1129049271
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/checks
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python-control/python-control/pull/795/checks
twitter:imagehttps://avatars.githubusercontent.com/u/110974?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/110974?s=400&v=4
og:image:altI found these with pylint. See also rory/pylint for two pylint-specific commits if you want to run this yourself; I used pylint -E control to run pylint, with -E disabling all but the most serious ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneaf6de804ceb83ad30bb9b348cdeaccaa30cdcb566762d5e74e21e2bad88885d0
turbo-cache-controlno-preview
go-importgithub.com/python-control/python-control git https://github.com/python-control/python-control.git
octolytics-dimension-user_id2285872
octolytics-dimension-user_loginpython-control
octolytics-dimension-repository_id22791752
octolytics-dimension-repository_nwopython-control/python-control
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id22791752
octolytics-dimension-repository_network_root_nwopython-control/python-control
turbo-body-classeslogged-out env-production page-responsive full-width full-width-p-0
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2d980605f0959039ddebcbcf522b072508302977
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-control/python-control/pull/795/checks#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-control%2Fpython-control%2Fpull%2F795%2Fchecks
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-control%2Fpython-control%2Fpull%2F795%2Fchecks
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fchecks&source=header-repo&source_repo=python-control%2Fpython-control
Reloadhttps://github.com/python-control/python-control/pull/795/checks
Reloadhttps://github.com/python-control/python-control/pull/795/checks
Reloadhttps://github.com/python-control/python-control/pull/795/checks
python-control https://github.com/python-control
python-controlhttps://github.com/python-control/python-control
Notifications https://github.com/login?return_to=%2Fpython-control%2Fpython-control
Fork 447 https://github.com/login?return_to=%2Fpython-control%2Fpython-control
Star 2k https://github.com/login?return_to=%2Fpython-control%2Fpython-control
Code https://github.com/python-control/python-control
Issues 87 https://github.com/python-control/python-control/issues
Pull requests 8 https://github.com/python-control/python-control/pulls
Discussions https://github.com/python-control/python-control/discussions
Actions https://github.com/python-control/python-control/actions
Projects 0 https://github.com/python-control/python-control/projects
Wiki https://github.com/python-control/python-control/wiki
Security 0 https://github.com/python-control/python-control/security
Insights https://github.com/python-control/python-control/pulse
Code https://github.com/python-control/python-control
Issues https://github.com/python-control/python-control/issues
Pull requests https://github.com/python-control/python-control/pulls
Discussions https://github.com/python-control/python-control/discussions
Actions https://github.com/python-control/python-control/actions
Projects https://github.com/python-control/python-control/projects
Wiki https://github.com/python-control/python-control/wiki
Security https://github.com/python-control/python-control/security
Insights https://github.com/python-control/python-control/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython-control%2Fpython-control%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython-control%2Fpython-control%2Fissues%2Fnew%2Fchoose
bnavigatorhttps://github.com/bnavigator
python-control:mainhttps://github.com/python-control/python-control/tree/main
roryyorke:rory/pylint-fixeshttps://github.com/roryyorke/python-control/tree/rory/pylint-fixes
Conversation 6 https://github.com/python-control/python-control/pull/795
Commits 5 https://github.com/python-control/python-control/pull/795/commits
Checks 0 https://github.com/python-control/python-control/pull/795/checks
Files changed https://github.com/python-control/python-control/pull/795/files
Please reload this pagehttps://github.com/python-control/python-control/pull/795/checks
Please reload this pagehttps://github.com/python-control/python-control/pull/795/checks
Fixes for bugs found by pylint https://github.com/python-control/python-control/pull/795/checks#top
Please reload this pagehttps://github.com/python-control/python-control/pull/795/checks
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.