(self)
| 2007 | form[""] |
| 2008 | |
| 2009 | def test_or(self): |
| 2010 | X = ForwardRef("X") |
| 2011 | # __or__/__ror__ itself |
| 2012 | self.assertEqual(X | "x", Union[X, "x"]) |
| 2013 | self.assertEqual("x" | X, Union["x", X]) |
| 2014 | |
| 2015 | def test_multiple_ways_to_create(self): |
| 2016 | X1 = Union["X"] |
nothing calls this directly
no test coverage detected