Skip to content

Commit

Permalink
Make the mutable containers final
Browse files Browse the repository at this point in the history
Summary: Make the mutable containers final

Reviewed By: aristidisp

Differential Revision: D65227954

fbshipit-source-id: 953171b7837a6139348533b67b2d870390ffdc45
  • Loading branch information
yoney authored and facebook-github-bot committed Oct 30, 2024
1 parent aca561e commit b65e05e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

cimport cython

from collections.abc import (
Iterable,
Expand All @@ -33,6 +34,7 @@ from thrift.python.types cimport (
)


@cython.final
cdef class MutableList:
"""
A mutable container used to represent a Thrift mutable list.
Expand Down Expand Up @@ -192,6 +194,7 @@ cdef class MutableList:
MutableSequence.register(MutableList)


@cython.final
cdef class MutableSet:
"""
A mutable container used to represent a Thrift mutable set. It implements
Expand Down Expand Up @@ -480,6 +483,7 @@ cdef class ValueIterator:
return self


@cython.final
cdef class MutableMap:
"""
A mutable container used to represent a Thrift mutable map. It implements
Expand Down

0 comments on commit b65e05e

Please sign in to comment.