mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Cleanup: remove unicode prefix, remove explicit inheritance from object (#11015)
* Address UP025: remove unicode literals from strings. * Address UP004: class inherits from 'object'.
This commit is contained in:
@@ -8,7 +8,7 @@ from __future__ import annotations
|
||||
import copy
|
||||
|
||||
|
||||
class _Variable(object):
|
||||
class _Variable:
|
||||
NOTHING = object()
|
||||
|
||||
def __init__(self, diff=False, output=True, change=None, fact=False, verbosity=0):
|
||||
@@ -104,7 +104,7 @@ class _Variable(object):
|
||||
)
|
||||
|
||||
|
||||
class VarDict(object):
|
||||
class VarDict:
|
||||
reserved_names = ('__vars__', '_var', 'var', 'set_meta', 'get_meta', 'set', 'output', 'diff', 'facts', 'has_changed', 'as_dict')
|
||||
|
||||
def __init__(self):
|
||||
|
||||
Reference in New Issue
Block a user