PyBool = distinct bool
False = false
True = true
func `$`(self: PyBool): string {....raises: [], tags: [], forbids: [].}
alias for repr
NOTE: CPython's bool's __str__ is itself not defined, which is inherted from object, which will call obj.__repr__ as fallback. This minics it.
func `==`(b: bool; self: PyBool): PyBool {.borrow, ...raises: [], tags: [], forbids: [].}
func `==`(self: PyBool; b: bool): PyBool {.borrow, ...raises: [], tags: [], forbids: [].}
func `==`(self: PyBool; opyb: PyBool): PyBool {.borrow, ...raises: [], tags: [], forbids: [].}
func all[T](iter: Iterable[T]): PyBool
func `and`(self: PyBool; opyb: PyBool): PyBool {.borrow, ...raises: [], tags: [], forbids: [].}
func `and`[T: not PyBool and not bool](nself, npyb: T): T
func any[T](iter: Iterable[T]): PyBool
proc bool[T](arg: T): PyBool
func `is`(self: PyBool; opyb: PyBool): PyBool {.borrow, ...raises: [], tags: [], forbids: [].}
func `not`(self: PyBool): PyBool {.borrow, ...raises: [], tags: [], forbids: [].}
func `not`[T: not PyBool and not bool](nself: T): PyBool
func `or`(self: PyBool; opyb: PyBool): PyBool {.borrow, ...raises: [], tags: [], forbids: [].}
func `or`[T: not PyBool and not bool](nself, npyb: T): T
func repr(self: PyBool): string {....raises: [], tags: [], forbids: [].}
func `xor`(self: PyBool; opyb: PyBool): PyBool {.borrow, ...raises: [], tags: [], forbids: [].}
converter pybool(x: bool): PyBool {....raises: [], tags: [], forbids: [].}
converter pybool[T](x: T): PyBool
converter toNimBool(self: PyBool): bool {....raises: [], tags: [], forbids: [].}
template toBool[T](arg: T): bool