Skip to content

Commit

Permalink
NFC: update comments / resolve typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiirola committed Oct 31, 2024
1 parent ac691c6 commit 7037f37
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pyomo/common/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1681,10 +1681,10 @@ class UninitializedMixin(object):
This mixin can be used to create a derived Config class that hides
the (uninitialized) ``_data`` attribute behind a property. Any
attempt to access the _data will trigger the initialization of the
attempt to access the ``_data`` will trigger the initialization of the
Config object from its ``_default`` value. Setting the ``_data``
attribute will also trigger resolution of the Config object, but
without processing the ``_default__.
without processing the ``_default__``.
"""

Expand Down Expand Up @@ -2486,7 +2486,7 @@ def _append(self, _data, value):
# is a ConfigValue and __call__ will trigger set_value(), which
# will set the _userSet flag. As we get here during _default
# processing, we want to clear that flag. If this is actually
# getting triggeresd through set_value() / append(), then
# getting triggered through set_value() / append(), then
# append() will be responsible for setting _userSet.
val._userSet = False
_data.append(val)
Expand Down
2 changes: 1 addition & 1 deletion pyomo/common/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class FlagType(type):

def __new__(mcs, name, bases, dct):
# Ensure that attempts to construct instances of a Flag type
# returnthe type.
# return the type.
def __new_flag__(cls, *args, **kwargs):
return cls

Expand Down
4 changes: 2 additions & 2 deletions pyomo/common/tests/test_flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def test_NOTSET(self):
self.assertIsNone(in_testing_environment.state)

def test_singleton(self):
# This tests that the type is a "singleton", and attempts to
# construct an instance will return the class
# This tests that the type is a "singleton", and that any
# attempts to construct an instance will return the class
self.assertIs(NOTSET(), NOTSET)
self.assertIs(NOTSET(), NOTSET())

0 comments on commit 7037f37

Please sign in to comment.