]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/smb: fix an incorrect comment
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 8 May 2024 17:04:01 +0000 (13:04 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Mon, 24 Jun 2024 12:41:08 +0000 (08:41 -0400)
At one point the comment was true but I ended doing a workaround
enabling a wrapper in proto.py of typing_extensions.Self and using it
here turning the comment untrue.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/pybind/mgr/smb/resources.py

index bbda46b2256636f4bb9304e76adf173226099899..ea6b6585cd925c432e21ffe04cf20103594aafe5 100644 (file)
@@ -320,8 +320,7 @@ class WrappedPlacementSpec(PlacementSpec):
         # improperly typed. They are improperly typed because typing.Self
         # didn't exist and the old correct way is a PITA to write (and
         # remember).  Thus a lot of classmethods are return the exact class
-        # which is technically incorrect. This fine class is guilty of the same
-        # sin. :-)
+        # which is technically incorrect.
         return cast(Self, cls.from_json(data))
 
     @classmethod