Skip to content

Commit

Permalink
dep: add Dep.blocker string equality doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
radhermit committed Nov 29, 2023
1 parent 1bfc981 commit 0f51d6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pkgcraft/dep/pkg.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ cdef class Dep:
>>> dep = Dep('!!cat/pkg')
>>> dep.blocker is Blocker.Strong
True
>>> dep.blocker == '!!'
True
"""
if blocker := C.pkgcraft_dep_blocker(self.ptr):
return Blocker(blocker)
Expand Down

0 comments on commit 0f51d6e

Please sign in to comment.