File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -117,18 +117,13 @@ def __init__(
117
117
118
118
# mow we check if it's iterable and contains valid types
119
119
try :
120
- sources = list (sources ) # convert to list for consistency
121
- if not all (isinstance (v , (str , os .PathLike )) for v in sources ):
122
- raise AssertionError (
123
- "All elements in 'sources' must be strings or PathLike objects"
124
- )
120
+ self .sources = list (map (os .fspath , sources ))
125
121
except TypeError :
126
122
raise AssertionError (
127
123
"'sources' must be an iterable of strings or PathLike objects"
128
124
)
129
125
130
126
self .name = name
131
- self .sources = list (map (os .fspath , sources ))
132
127
self .include_dirs = include_dirs or []
133
128
self .define_macros = define_macros or []
134
129
self .undef_macros = undef_macros or []
You can’t perform that action at this time.
0 commit comments