if all(char not in [';', '[', ']', '(', ')', '{', '}', ':', 'as'] for char in child_fragment):

·

1 min read

 if all(char not in [';', '[', ']', '(', ')', '{', '}', ':', 'as'] for char in child_fragment):