Disable formatting of `to_type` docstring.
This docstring is fairly useful and descriptive, and pylint does not know how to handle it.
@@ -409,6 +409,7 @@ class FederatedType(Type):
def to_type(spec):
+ # pyformat: disable
"""Converts the argument into an instance of `Type`.
Args:
@@ -444,6 +445,7 @@ def to_type(spec):
Returns:
An instance of `Type` corresponding to the given spec.
"""
+ # pyformat: enable
# TODO(b/113112108): Add multiple examples of valid type specs here in the
# comments, in addition to the unit test.
