Skip to content

Commit 94f68f5

Browse files
fix datatype() declarations
1 parent 1c5218b commit 94f68f5

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/python/pants/backend/native/register.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from pants.util.osutil import get_normalized_os_name
1212

1313

14-
class Platform(datatype('Platform', ['normalized_os_name'])):
14+
class Platform(datatype(['normalized_os_name'])):
1515

1616
def __new__(cls):
1717
return super(Platform, cls).__new__(cls, get_normalized_os_name())

src/python/pants/backend/python/tasks/setup_py.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ def _setup_command(self):
7979
return self.__setup_command
8080

8181

82-
class SetupPyInvocationEnvironment(datatype('SetupPyInvocationEnvironment', [
83-
'joined_path',
84-
])):
82+
class SetupPyInvocationEnvironment(datatype(['joined_path'])):
8583

8684
def as_env_dict(self):
8785
return {

0 commit comments

Comments
 (0)