(self)
| 442 | return c |
| 443 | |
| 444 | def connect(self) -> PoolProxiedConnection: |
| 445 | # vendored from Pool to include the now removed use_threadlocal |
| 446 | # behavior |
| 447 | try: |
| 448 | rec = cast(_ConnectionFairy, self._fairy.current()) |
| 449 | except AttributeError: |
| 450 | pass |
| 451 | else: |
| 452 | if rec is not None: |
| 453 | return rec._checkout_existing() |
| 454 | |
| 455 | return _ConnectionFairy._checkout(self, self._fairy) |
| 456 | |
| 457 | |
| 458 | class StaticPool(Pool): |