Skip to content

Modernization: Convert to new implicit standard for classes#3654

Merged
mrmundt merged 4 commits intoPyomo:mainfrom
mrmundt:replace-object
Oct 1, 2025
Merged

Modernization: Convert to new implicit standard for classes#3654
mrmundt merged 4 commits intoPyomo:mainfrom
mrmundt:replace-object

Conversation

@mrmundt
Copy link
Copy Markdown
Contributor

@mrmundt mrmundt commented Jun 30, 2025

Fixes NA

Summary/Motivation:

In Python3, you no longer need to explicitly inherit from object for classes; it's now implicit that if you type:

class MyClass:

it is equivalent to class MyClass(object):

We like staying modern, so this PR removes all instances.

Changes proposed in this PR:

  • Remove all instances of (object)

Legal Acknowledgement

By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the BSD license.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

@mrmundt mrmundt merged commit 918824e into Pyomo:main Oct 1, 2025
34 of 35 checks passed
@mrmundt mrmundt deleted the replace-object branch January 8, 2026 15:32
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.

3 participants