| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d8552fc6-1a8f-d295-0553-fa6e57b89d40 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B47C:25853D:26D3EF:33868D:6B04B622 |
| html-safe-nonce | 8d0fde965437bf16a67a5f3b53dbf31bbc10e44b9dc9236fa2231206b9874bf9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDdDOjI1ODUzRDoyNkQzRUY6MzM4NjhEOjZCMDRCNjIyIiwidmlzaXRvcl9pZCI6IjUwMjk5ODUyMzMyMTEyNzQ3ODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1c945ed0a6e7bb7b41dc6e5641cacc6d64254706a783ca8f4952c4b6a6ccc136 |
| hovercard-subject-tag | pull_request:4076015591 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/files |
| twitter:image | https://avatars.githubusercontent.com/u/139251053?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/139251053?s=400&v=4 |
| og:image:alt | Draft, not requesting merge, sharing for feedback on the direction. Addresses the typing idea from #3306.
@aothms your comment there sketched hand-written Optional/Type[T] classes for 3 entities as... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 378bd702ac792b3550e484ad39d9a898fcd25bb52ba6962b0c9cc457c1ea71c7 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b032e77f1ea437ede6c115446a0a467709b468e7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fpull%2F8698%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fpull%2F8698%2Ffiles |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=IfcOpenShell%2FIfcOpenShell |
| Reload | https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/files |
| Reload | https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/files |
| Reload | https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/files |
| IfcOpenShell | https://github.com/IfcOpenShell |
| IfcOpenShell | https://github.com/IfcOpenShell/IfcOpenShell |
| Code | https://github.com/IfcOpenShell/IfcOpenShell |
| Issues1.2k (1.2k) | https://github.com/IfcOpenShell/IfcOpenShell/issues |
| Pull requests940 (940) | https://github.com/IfcOpenShell/IfcOpenShell/pulls |
| Discussions | https://github.com/IfcOpenShell/IfcOpenShell/discussions |
| Actions | https://github.com/IfcOpenShell/IfcOpenShell/actions |
| Projects | https://github.com/IfcOpenShell/IfcOpenShell/projects |
| Wiki | https://github.com/IfcOpenShell/IfcOpenShell/wiki |
| Security and quality | https://github.com/IfcOpenShell/IfcOpenShell/security |
| Insights | https://github.com/IfcOpenShell/IfcOpenShell/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2Fnew%2Fchoose |
| petruconduraru | https://github.com/petruconduraru |
| IfcOpenShell:v0.9.0 | https://github.com/IfcOpenShell/IfcOpenShell/tree/v0.9.0 |
| BIMvoice:fix-3306-typed-ifc4-stubs | https://github.com/BIMvoice/IfcOpenShell/tree/fix-3306-typed-ifc4-stubs |
|
Conversation
4
| https://github.com/IfcOpenShell/IfcOpenShell/pull/8698 |
|
Commits
6
| https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/commits |
|
Checks
8
| https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/checks |
|
Files changed
| https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/files |
| Please reload this page | https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/files |
|
[Draft/RFC] ifcopenshell-python: generated typed IFC4 stubs for schema-aware by_type()
| https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/files#top |
|
Show all changes
6 commits
| https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/files |
|
f15eb24
ifcopenshell-python: generate typed IFC4 stubs for schema-aware by_ty…
petruconduraru Jul 17, 2026
| https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/commits/f15eb2452979cf7621a96efc90a4b93f3dddebf1 |
|
940aebd
ifcopenshell-python: prototype cross-schema by_type() narrowing (#8698)
petruconduraru Jul 19, 2026
| https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/commits/940aebd928424dd76253e34664be14f5750b534c |
|
01c4981
ifcopenshell-python: entity_instance.schema for instance-level narrow…
petruconduraru Jul 19, 2026
| https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/commits/01c4981fbde4e7ebb8ede206fca448e6e4fd71fa |
|
225684f
Merge v0.9.0 into PR 8698 branch
petruconduraru Sep 29, 2026
| https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/commits/225684fc88ebb592b915f1bff798ed43a887c668 |
|
c17240e
Cast by_type() result to tuple in typing test
petruconduraru Sep 29, 2026
| https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/commits/c17240e8dc0f861c75d314c9a1eb4e89031e2b0f |
|
b9c3d3e
Merge origin/v0.9.0 into fix-3306-typed-ifc4-stubs
petruconduraru Sep 30, 2026
| https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/commits/b9c3d3e53e5a0f2512651563879f3502ae97bd80 |
|
Clear filters
| https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/files |
| Please reload this page | https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/files |
| Please reload this page | https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/files |
|
entity_instance.py
| https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/files#diff-b63197ec4d064fc4387ed3f1b8becdbf26fc1c441afea3a07e701d384134a2f7 |
|
ifc4.pyi
| https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/files#diff-08bb81066f9c6a2859987473feb19e8eb3dcf5b3d1ab24b57ab4eef59b4b38b2 |
|
ifc4x3.pyi
| https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/files#diff-3437b51cccb92fdfe0c66ce770d263971d3cb21e9d00bb65cf8841adc3d7a176 |
|
generate_typed_stubs.py
| https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/files#diff-a375e9c05b15322c5abb2bb6d43a0b62be83ef0c1d56aa4182c52d2db28ca471 |
|
typing_tests.py
| https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/files#diff-96cabfd410740bb3f250d104423a95f5d23e5409a34560cde1b11fe2a891e0fe |
| src/ifcopenshell-python/ifcopenshell/entity_instance.py | https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/files#diff-b63197ec4d064fc4387ed3f1b8becdbf26fc1c441afea3a07e701d384134a2f7 |
|
View file
| https://github.com/IfcOpenShell/IfcOpenShell/blob/b9c3d3e53e5a0f2512651563879f3502ae97bd80/src/ifcopenshell-python/ifcopenshell/entity_instance.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/{{ revealButtonHref }} |
|
| https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/files#diff-b63197ec4d064fc4387ed3f1b8becdbf26fc1c441afea3a07e701d384134a2f7 |
|
| https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/files#diff-b63197ec4d064fc4387ed3f1b8becdbf26fc1c441afea3a07e701d384134a2f7 |
|
| https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/files#diff-b63197ec4d064fc4387ed3f1b8becdbf26fc1c441afea3a07e701d384134a2f7 |
|
| https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/files#diff-b63197ec4d064fc4387ed3f1b8becdbf26fc1c441afea3a07e701d384134a2f7 |
| Please reload this page | https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/files |
| Please reload this page | https://github.com/IfcOpenShell/IfcOpenShell/pull/8698/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |